Friday, June 28, 2024
No menu items!
Google search engine
HomeJqueryClear form contents after form submitted using Jquery

Clear form contents after form submitted using Jquery

One of the best simplest way to reset your form with jQuery is Simply call reset() on your form using a class name or id attribute.

$("#myform")[0].reset();

or 

$(".myformclass")[0].reset();

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments