Parsley JS 2.x - how do you validate hidden fields?
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? I'm guessing this is a bug. Take this form: <form method="post" id="myForm"> <input type="text" name="field1" value="" class="required" /> <input type="hidden" name="hiddeninput" value="" class="required