Spry

Confirm widget methods

The Confirm 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="ConfirmWidgetObject.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="ConfirmWidgetObject.validate();">