-
Notifications
You must be signed in to change notification settings - Fork 0
/
en_example_with_conflicts.html
94 lines (90 loc) · 4.34 KB
/
en_example_with_conflicts.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html><!-- English example -->
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="css/form.css" />
<link type="text/css" rel="stylesheet" href="css/jquery.formvalidate.css" />
</head>
<body>
<div id="dataValidationSummary"></div>
<form id="frmValidate" method="post" action="" data-validation="field-icon">
<div>
<label for="txtEnum">Enum</label>
<input type="text" name="txtEnum" id="txtEnum" data-validation="enum[1,2,3,4,5,hello,world] required " />
</div>
<div>
<label for="txtRange">Range</label>
<input type="text" name="txtRange" id="txtRange" data-validation="range[2-5] required" />
</div>
<div>
<label for="txtRegex">Regex</label>
<input type="text" name="txtRegex" id="txtRegex" data-validation="regex[^[a-zA-Z]+$] required" />
</div>
<div>
<label>Radio</label>
<span>Radio 01</span> <input type="radio" name="optRadio" value="radio01" data-validation="required" />
<span>Radio 02</span> <input type="radio" name="optRadio" value="radio02" />
</div>
<div>
<label for="txtAlnum">Alnum</label>
<input type="text" name="txtAlnum" id="txtAlnum" data-validation="required number alpha" />
</div>
<div>
<label for="txtAlpha">Alpha</label>
<input type="text" name="txtAlpha" id="txtAlpha" data-validation="alpha required enum number" />
</div>
<div>
<label for="txtText">Text</label>
<input type="text" name="txtText" id="txtText" data-validation="required integer" />
</div>
<div>
<label for="txtEmail">Email</label>
<input type="text" name="txtEmail" id="txtEmail" data-validation="email" />
</div>
<div>
<label for="txtPassword">Password</label>
<input type="password" name="txtPassword" id="txtPassword" data-validation="required number" />
</div>
<div>
<label for="txtTextarea">Textarea</label>
<textarea name="txtTextarea" id="txtTextarea" data-validation="required"></textarea>
</div>
<div>
<label for="cboSelectOne">Select One</label>
<select name="cboSelectOne" id="cboSelectOne" data-validation="required">
<option value=""></option>
<option value="0">Female</option>
<option value="1">Male</option>
</select>
</div>
<div>
<label for="cboSelectMultiple">Select Multiple</label>
<select name="cboSelectMultiple" id="cboSelectMultiple" multiple="multiple" size="4" data-validation="required">
<option value=""></option>
<option value="1">Option 01</option>
<option value="2">Option 02</option>
<option value="3">Option 03</option>
<option value="4">Option 04</option>
<option value="5">Option 05</option>
<option value="6">Option 06</option>
</select>
</div>
<div>
<label>Checkbox</label>
<span>Checkbox 01</span> <input type="checkbox" name="chkCheckbox" value="checkbox01" data-validation="required" />
<span>Checkbox 02</span> <input type="checkbox" name="chkCheckbox" value="checkbox01" />
<span>Checkbox 03</span> <input type="checkbox" name="chkCheckbox" value="checkbox03" />
</div>
<div>
<button>Submit</button>
</div>
</form>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.formvalidate.js"></script>
<script type="text/javascript" src="js/en-US.js"></script>
<script type="text/javascript">
$('#frmValidate').formValidate({summary: 'dataValidationSummary'});
</script>
</body>
</html>