I’d like to reset multiple textareas and input files by specifying them manually, how do I do with jQuery.
I used this to clear forms until now:
$('.clear').click(function () {
$('form#input')[0].reset();
});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will set all of the values of the textareas and inputs on the form to empty: