API Docs for:
Show:

ParsleyForm Class

Defined in: parsley.js:1063

ParsleyForm class manage Parsley validated form. Manage its fields and global validation

Constructor

ParsleyForm

()

Defined in parsley.js:1063

Methods

addItem

(
  • elem
)

Defined in parsley.js:1110

Adds a new parsleyItem child to ParsleyForm

Parameters:

  • elem Object

destroy

()

Defined in parsley.js:1202

destroy Parsley binded on the form and its fields

removeErrors

()

Defined in parsley.js:1191

Remove all errors ul under invalid fields

removeItem

(
  • elem
)
Boolean

Defined in parsley.js:1127

Removes a parsleyItem child from ParsleyForm

Parameters:

  • elem Object

Returns:

Boolean:

reset

()

Defined in parsley.js:1215

reset Parsley binded on the form and its fields

validate

(
  • event
)
Boolean

Defined in parsley.js:1149

Process each form field validation Display errors, call custom onFormSubmit() function

Parameters:

  • event Object

    jQuery Event

Returns:

Boolean:

Is form valid or not