C# Class jQueryApi.jQueryValidationObject

Inheritance: jQueryObject
Mostra file Open project: volkanceylan/Serenity

Public Methods

Method Description
Rules ( string action, jQueryValidationRules rules ) : jQueryValidationRules

Adds or removes the specified rules to the first matched element. Requires that the parent form has been validated prior to the call.

Valid ( ) : bool

Checks whether the selected form is valid or whether all selected elements are valid.

Validate ( ) : jQueryValidator

Validates the selected form.

Validate ( jQueryValidatorOptions options ) : jQueryValidator

Validates the selected form.

Private Methods

Method Description
GetRules ( ) : jQueryValidationRules
RemoveAttributes ( string attributes ) : string
jQueryValidationObject ( ) : System

Method Details

Rules() public method

Adds or removes the specified rules to the first matched element. Requires that the parent form has been validated prior to the call.
public Rules ( string action, jQueryValidationRules rules ) : jQueryValidationRules
action string The action to perform. Should be 'add' or 'remove'
rules jQueryValidationRules The rules to add or remove to the specified element.
return jQueryValidationRules

Valid() public method

Checks whether the selected form is valid or whether all selected elements are valid.
public Valid ( ) : bool
return bool

Validate() public method

Validates the selected form.
public Validate ( ) : jQueryValidator
return jQueryValidator

Validate() public method

Validates the selected form.
public Validate ( jQueryValidatorOptions options ) : jQueryValidator
options jQueryValidatorOptions The validation options
return jQueryValidator