Want to reset a form (with) jQuery?
$("#my_form").get(0).reset();
No more.
Written by Thomas Gravina
Related protips
1 Response
or you can do $("#my_form")[0].reset()
or even better document.getElementById('#my_form').reset()
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#