【Foreword】
Student question: How to get the value of the input input box with jquery?
【main body】
Here I give an example to understand
How to get the value entered in <input id="test" name="test" type="text"/> with jquery?
$(" #test ").val() $(" input[ name='test' ] ").val() $(" input[ type='text' ] ").val() $(" input[ type='text' ]").attr("value")
【expand】
About form clearing data
$('form').get(0).reset();Limited, the data obtained from the database cannot be cleared, only the newly entered characters can be reset. I will have time to summarize this tomorrow.