javascript - Image to Fade In during input -


i new javascript , jquery wanted ask how can make image fade-in next input tag when start typing in input field? how should write onchange function in javascript.

this code far

thank in advance

 <!doctype html>     <html>     <head>       <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>  </head> <body>     <img id="logo" src="visa.png" style="display:none"/>     <input id="test" type="text">  <script type="text/javascript">      $('#logo').hide().fadein(3000);  </script>  </body> </html> 

<img id="logo" src="visa.png" style="display:none" /> <input id="test" type="text" />  <script type="text/javascript">       $('#test').keypress(function() {          $('#logo').fadein(3000);      });   </script> 

is looking ?

jsfiddle

edit : second question, if understood correctly need, should trick : jsfiddle 2


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -