I am trying to add a role to the required message generated from data-parsley-required-message, but do not have an idea how to do that.
This element is auto-generated when validating the required field with data-parsley:
<ul class="parsley-errors-list filled" id="parsley-id-5485">
<li class="parsley-required">This value is required.</li></ul>
I want to add attribute role="alert" as:
<li class="parsley-required" role="alert"> This value is required.</li>
Need to add a role to the data-parsley-required-message. How?
- This field is required
Instead I want the result as: – Bimal Parajuli Feb 15 '18 at 02:32