Textarea keypress event - Javascript jQuery

Javascript examples for jQuery:Form Textarea

Description

Textarea keypress event

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Keyup Textare Example</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script> 
  <script type="text/javascript">
    window.onload=function(){/*from w ww.  j a  v a  2  s  . c o  m*/
$(document).ready(function(){
    $("#yourcode").keyup(function() {
      console.log("test.");
    });
});
    }

      </script> 
 </head> 
 <body> 
  <textarea id="yourcode"></textarea>  
 </body>
</html>

Related Tutorials