ParsleyForm Class
ParsleyForm class manage Parsley validated form. Manage its fields and global validation
Constructor
ParsleyForm
()
Item Index
Methods
Methods
addItem
(
-
elem
Adds a new parsleyItem child to ParsleyForm
Parameters:
-
elem
Object
destroy
()
destroy Parsley binded on the form and its fields
removeErrors
()
Remove all errors ul under invalid fields
removeItem
(
Boolean
-
elem
Removes a parsleyItem child from ParsleyForm
Parameters:
-
elem
Object
Returns:
Boolean:
reset
()
reset Parsley binded on the form and its fields
validate
(
Boolean
-
event
Process each form field validation Display errors, call custom onFormSubmit() function
Parameters:
-
event
ObjectjQuery Event
Returns:
Boolean:
Is form valid or not