Javascript examples for jQuery:Form Text Input
Get value of input text control on click in Jquery
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.1.js"></script> <script type="text/javascript"> $(function(){//w ww . j a v a 2s . c o m $(function() { console.log($("input[name='Phone2']").val()); }); }); </script> </head> <body> <input type="text" name="Phone2" value="Hey"> </body> </html>