Spry

Password widget methods

The Password widget has two public methods: reset and validate.

Reset

Use the reset method if you want to set the validation widget back to its default state. For example:

<input type="button" value="Reset" onclick="PasswordWidgetObject.reset();">

Validate

Use the validate method if you want to validate the widget from some other object or event. For example:

<input type="button" value="Validate the field" onclick="PasswordWidgetObject.validate();">