Skip to content

Update onclick in validate.xml to reflect select elements #36

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

Merged
merged 1 commit into from
Jun 17, 2017

Conversation

sparky672
Copy link
Contributor

@sparky672 sparky672 commented Jun 16, 2017

When answering a question on StackOverflow about a broken select element, the OP had this option set to false. The select element was then only being validated on focusout and submit. Selecting items in the select had no effect on the validation message of this element until moving focus away.

Removing this option, since it cannot be set to true, fixed the issue. Therefore, the documentation is incomplete. This option effects validation of select elements as well as radio and checkbox.

Comment out the onclick line in the demo to see the difference:

DEMO

When answering a question on StackOverflow about a broken `select` element, the OP had this option set to `false`.  The `select` element was only being validated on focusout and on submit.  Selecting items had no effect on validation message of this element.   Removing this option, since it cannot be set to `true`, fixed the issue.  Therefore, the documentation is incomplete.  This option affects validation of `select` elements as well as radio and checkbox.

https://jsfiddle.net/pu752c3a/
@sparky672 sparky672 changed the title Update validate.xml Update onclick in validate.xml to reflect select elements Jun 16, 2017
@staabm staabm merged commit 6db2536 into jquery-validation:master Jun 17, 2017
@staabm
Copy link
Member

staabm commented Jun 17, 2017

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants