From aeea7e70f2d59f8163041fd5e1aa6f1db5698b8c Mon Sep 17 00:00:00 2001 From: sparky672 Date: Fri, 16 Jun 2017 10:24:56 -0500 Subject: [PATCH] Update validate.xml 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/ --- entries/validate.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entries/validate.xml b/entries/validate.xml index f100364..c85ac01 100644 --- a/entries/validate.xml +++ b/entries/validate.xml @@ -272,10 +272,10 @@ - Validate checkboxes and radio buttons on click. Set to false to disable. + Validate checkboxes, radio buttons, and select elements on click. Set to false to disable.

Set to a Function to decide for yourself when to run validation.

A boolean true is not a valid value.

-

Example: Disables onclick validation of checkboxes and radio buttons.

+

Example: Disables onclick validation of checkboxes, radio buttons, and select elements.


 					$("#myform").validate({
 						onclick: false