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 ?
edit : second question, if understood correctly need, should trick : jsfiddle 2
Comments
Post a Comment