Clear form after submission with jQuery


What is the easiest way to clear the form after submitting the form via ajax successfully?

I tried below, but no luck !!

$( '#formid' ).reset()
Asked on October 21, 2018 in Programmer.
Add Comment
1 Answer(s)
Best answer
$( '#formid' ).each(function(){

You can't just call $( '#formid' ).reset() because .reset() is a form object and not a jquery object.
Answered on October 21, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.