minlength( length )Returns: Boolean
Description: Makes the element require a given minimum length.
-
minlength( length )
-
lengthType: NumberMinimum number of characters required
-
Return false if the element is
- some kind of text input and its value is too short
- a set of checkboxes that doesn't have enough boxes checked
- a select and doesn't have enough options selected
Works with text inputs, selects and checkboxes.
Example:
Makes "field" required having at least 3 characters.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
|