validate()

Validate all fields

It might be used when you want to validate the form manually when pressing given button.

Tip

If you want the form to be validated automatically when pressing its Submit button, use the SubmitButton plugin

More examples