Currently, I am excluding one input and adding the success class (which is fine with me)
$('form').parsley({ excluded: '[data-parsley-sum-total="all"]' });
However, there are several other inputs without any validations that I do not want to have the 'parsley-success' class added on submit. Even when I add them to the list of excluded inputs, the 'parsley-success' class still appears after submission. Right now, I am manually removing them upon submission, but is there an option to prevent them from receiving the class in the first place?
Using parsley version 2.0.7
Thank you in advance for any assistance.
Edit:
For reference, all the inputs I want the validation to appear for are contained within a single div like this:
<form id="f">
<input>
<input>
<div id="d">
<input>
<input>
</div>
I would like to achieve something similar to $('#d').parsley()
, but that does not seem to work.
In addition to using parsley excluded as mentioned earlier, utilizing data-parsley-group=""
has not been effective for me either. Both methods exclude from validations, but do not address the parsley-success issue I am facing.