validates user input of an HTML form based on input profile
returns an object that contains several methods summarizing the results of the validation
Parameter | Type | Description |
---|---|---|
form | HTMLFormElement | form to be validated |
profile | Object | specifies how the form fields are to be validated {trim:Array, uppercase:Array, lowercase:Array, ucfirst:Array, digit:Array, required:Array, dependencies:Object, constraints:Object, confirm:Object} |
See the dojox/validate/check reference documentation for more information.