The validator usage example says that it is possible to validate inputs without a form by passing in the inputs:
Validating inputs without a form
The tool validates all input fields except buttons and hidden fields inside a particular form. You can also select particular fields and validate them. For example:
However, when I try this, my firebug displays the following:
uncaught exception: Validator: no input fields supplied
Is there wrong something with the example, or am I doing something wrong?
Validating inputs without a form
The tool validates all input fields except buttons and hidden fields inside a particular form. You can also select particular fields and validate them. For example:
// initialize validator for a bunch of input fields
var inputs = $("#mydiv :input").validator();
// perform validation programmatically
inputs.data("validator").checkValidity();
However, when I try this, my firebug displays the following:
uncaught exception: Validator: no input fields supplied
Is there wrong something with the example, or am I doing something wrong?
