Edgar Navasardyan Edgar Navasardyan - 1 year ago 77
Javascript Question

Parsley's EXCLUDED not recognizing :last

I am trying to make Parlsley validate all the rows in the table except the last one, and it seems to ignore me )

excluded: 'tr:last'

Here's the JSFIddle

Any ideas ?

Answer Source

excluded works by filtering your inputs, i.e:


It does not "redo" the search from the form level, i.e. it does not do:

$yourForm.find(inputs).not($yourForm.find(excluded))  # *Not* the way Parsley treats `excluded`

Your excluded selector is thus ineffective.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download