Question: how to get input field data in jquery?
Answer: <title>jQuery Get the Value of an Input Text Box</title> <script> // Get value on button click and show alert. $("#myBtn"). click(function(){ var str = $("#myInput"). val(); alert(str); }); });