C# Class jQueryApi.jQueryValidationObject

Inheritance: jQueryObject
Afficher le fichier Open project: volkanceylan/Serenity

Méthodes publiques

Méthode 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

Méthode Description
GetRules ( ) : jQueryValidationRules
RemoveAttributes ( string attributes ) : string
jQueryValidationObject ( ) : System

Method Details

Rules() public méthode

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.
Résultat jQueryValidationRules

Valid() public méthode

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

Validate() public méthode

Validates the selected form.
public Validate ( ) : jQueryValidator
Résultat jQueryValidator

Validate() public méthode

Validates the selected form.
public Validate ( jQueryValidatorOptions options ) : jQueryValidator
options jQueryValidatorOptions The validation options
Résultat jQueryValidator