Add ARIA attributes based on the field validity
The list of ARIA attributes are:
aria-describedbyfor field element
rolefor associated error message element
The following piece of code is the starting point to use the Aria plugin:
The sample code above assumes that the FormValidation files are placed inside the
vendors directory. You might need to change the path depending on where you place them on the server.
Try to press the Add product button and inspect the field and error message elements using your browser Developer Tools to see how the ARIA attributes above are added to them.
- v1.0.0: First release