reset :: Form

reset(formElement) -> HTMLFormElement

 

Resets a form to its default values.

 

Example usage

 

Form.reset('contact')

 

// equivalent:

$('contact').reset()

 

// both have the same effect as pressing the reset button

 

This method allows you to programatically reset a form. It is a wrapper for the reset() method native to HTMLFormElement.


Prototype API 1.5.0 - prototypejs.org