I would like to validate hidden fields, so essentially I want to remove input[type=hidden]
from parsley's list of excluded form elements. I've tried explicitly setting excluded elements in parsley's options, but hidden fields are still not validated. E.g:
$(element).parsley({
excluded: 'input[type=button], input[type=submit]'
});
Any thoughts on how to accomplish this, or what I'm doing wrong?
element
in that JS?$(element)
is the form parsley is bound to. Yep, the form posts fine and dandy and otherwise works as expected. It just will not validate the hidden field.display: none;
). However it should be possible to have parsley validate hidden fields from what I've read, hence the query. Perhaps a bug in parsley? Or user error...