Display value of input field - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

Display value of input field

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">
$(function(){/*from  www  .  java2s .com*/
$('#list_search').on('keyup', my);
});
function my(e){
  console.log($(this).val());
}

      </script> 
   </head> 
   <body> 
      <input type="text" id="list_search">  
   </body>
</html>

Related Tutorials