-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathujv.html
More file actions
141 lines (93 loc) · 3.01 KB
/
Copy pathujv.html
File metadata and controls
141 lines (93 loc) · 3.01 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<html>
<head>
<title>Ultimate Validator</title>
<style type="text/css">
h1{ font-size: 110%; }
fieldset{ margin: 30px 0px; }
div{ margin: 15px 0px; }
.fieldErrorText{ color: red; }
.fieldErrorBorder{ border: 1px solid red; }
</style>
</head>
<h1>The Ultimate Javascript Validator ( UJV )</h1>
<p>Illustrates usage of the UJV.</p>
<form action="" method="GET" id="form1" name="form1">
<fieldset>
<legend>Basic Text Validations</legend>
<div>
<label for="firstname">First name:</label> <input type="text" value="" id="firstname" name="firstname" />
</div>
<div>
<label for="lastname">Last name:</label> <input type="text" value="" id="lastname" name="lastname" />
</div>
</fieldset>
<fieldset>
<legend>Rule-based Text Validations</legend>
<div>
<label for="email">Email:</label> <input type="text" value="" id="email" name="email" />
</div>
<div>
<label for="zipcode">U.S. ZIP Code:</label> <input type="text" value="" id="zipcode" name="zipcode" />
</div>
<div>
<label for="zipcode_uk">U.K. ZIP Code:</label> <input type="text" value="" id="zipcode_uk" name="zipcode_uk" />
</div>
</fieldset>
<fieldset>
<legend>Depends on other field Text Validations</legend>
<div>
<label for="password">Password:</label> <input type="text" value="" id="password" name="password" />
</div>
<div>
<label for="passwordchecked">Password Again:</label> <input type="text" value="" id="passwordchecked" name="passwordchecked" />
</div>
</fieldset>
<fieldset>
<legend>Radio Button Validations</legend>
<div>
<label for="pickles">Pickles:</label> <input type="radio" value="pickles" id="pickles" name="items" />
</div>
<div>
<label for="onions">Onions:</label> <input type="radio" value="onions" id="onions" name="items" />
</div>
<div>
<label for="sawdust">Sawdust:</label> <input type="radio" value="sawdust" id="sawdust" name="items" />
</div>
</fieldset>
<fieldset>
<legend>Checkbox Validations</legend>
<div>
<label for="pork">Pork:</label> <input type="checkbox" value="pork" id="pork" name="pork" />
</div>
<div>
<label for="beef">Beef:</label> <input type="checkbox" value="beef" id="beef" name="beef" />
</div>
<div>
<label for="chicken">Chicken:</label> <input type="checkbox" value="chicken" id="chicken" name="chicken" />
</div>
</fieldset>
<fieldset>
<legend>Dropdown Validations</legend>
<div>
<label for="cars">Cars:</label>
<select id="cars" name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</div>
<div>
<label for="cars_multi">Cars Multiple:</label>
<select id="cars_multi" name="cars_multi" multiple="multiple">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</div>
</fieldset>
<input type="submit" value="Submit" id="submit" name="submit" />
</form>
<script type="text/ecmascript" src="validator.js"></script>
</html>