From b836fd2cdc3a361d1aa916680b88fee5b5999e43 Mon Sep 17 00:00:00 2001 From: Brahim Arkni Date: Sat, 8 Jul 2017 12:40:08 +0100 Subject: [PATCH] Entries: Update required method docs to note that whitespaces are valid Fixes jquery-validation/jquery-validation#1794 --- entries/required-method.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entries/required-method.xml b/entries/required-method.xml index 827f692..755d1aa 100644 --- a/entries/required-method.xml +++ b/entries/required-method.xml @@ -6,6 +6,7 @@ Return false, if the element is empty (text input) or unchecked (radio/checkbox) or if nothing is selected (select).

Works with text inputs, selects, checkboxes and radio buttons.

To force a user to select an option from a select box, provide an empty option element like <option value="">Choose...</option>

+

Note that white spaces are considered valid.

The element is always required. @@ -28,7 +29,7 @@ - Makes "field" always required. Nothing and blanks are invalid. + Makes "field" always required.