Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to auto create the Describedby element #44

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

machadoug
Copy link

This will make it much easier to add error messages. I have also updated the demo in order to be easier to compare the result.

Created option to auto create the Describedby div if the data-describedby. This way I can just set data-description in each field and there is no need to set the the description option when the validate script is instantiated.
My editor (gedit) stop responding when opening this file, so I added line breaks.
It took me a while to find out it was necessary to have data-required in all input[type=checkbox], most validators I've tested do not require this, so I have added to the demo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants