jQuery.Model.static.validate  function     

Validates each of the specified attributes with the given function. See [validation] for more on validations.

$.Model.validate(attrNames, validateProc, options)
{Array|String}

Attribute name(s) to to validate

{Function}

Function used to validate each given attribute. Returns true for valid and false otherwise. Function is called in the instance context and takes the value to validate

{Object}

(optional) Options for the validations. Valid options include 'message' and 'testIf'.

© Jupiter IT - JavaScriptMVC Training and Support