I have tried $("#client.frm").reset(); but it is not working.So how to reset form via jQuery?
I have tried $(#client.frm).reset(); but it is not working.So how to reset form via
Share
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.
form.reset()is a DOM element method (not one on the jQuery object), so you need:Or without jQuery:
Note: reset() function does not work if form contains any field with attribute: