Last Updated: February 25, 2016
·
445
· thomasgravina

Want to reset a form (with) jQuery?

$("#my_form").get(0).reset();

No more.

1 Response
Add your response

or you can do $("#my_form")[0].reset()

or even better document.getElementById('#my_form').reset()

over 1 year ago ·