Reset a form elements using jquery/javascript

By using jquery
$('#formID')[0].reset();

By using Javascript
document.getElementById("myForm").reset(); 

The reset() method resets the values of all elements in a form (same as clicking the Reset button)
.

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online