Printing field input data live with Javascript when key typing - Javascript jQuery

Javascript examples for jQuery:Form Event

Description

Printing field input data live with Javascript when key typing

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/*ww  w.j  av  a2s  .c  o  m*/
$('textarea').keyup(function() {
    $('#foo').html($(this).val());
});
    });

      </script> 
   </head> 
   <body> 
      <textarea></textarea> 
      <div id="foo"></div>  
   </body>
</html>

Related Tutorials