HOW TO reset all the fields in form?

Discuss everything related to JavaScript Auto Form Validator. Questions and requests here.

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6191
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO reset all the fields in form?

Postby administrator » Sep 12th, '20, 11:30

To reset all fields, you have to define Reset button in the following way:

Code: Select all

<input type="reset" value="Reset" name="butReset" onclick="jsFormValidator.resetAllFields(document.forms['frmTest']);" />

Return to “JS Auto Form Validator”