forked from mustardamus/ketchup-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
validators_test.html
55 lines (50 loc) · 1.98 KB
/
validators_test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Ketchup Plugin</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/jquery.ketchup.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.ketchup.js"></script>
<script type="text/javascript" src="js/jquery.ketchup.messages.en.js"></script>
<script type="text/javascript" src="js/jquery.ketchup.validations.basic.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</head>
<body>
<p>
<br>
<br>
<br>
</p>
<form id="example1" >
<select name="select_test" class="validate(required, notvalue(--select--))">
<option>--select--</option>
<option value="1">one</option>
<option value="2">two</option>
</select>
<br><br>
<input type="submit">
</form>
<form id="example3" >
<select name="select_test" class="validate(required)">
<option value=''>--select--</option>
<option value="1">one</option>
<option value="2">two</option>
</select>
<br><br>
<input type="submit">
</form>
<br /><br /><br /><a href="#" id="example4_init">Reinit ketchup on form below</a><br /><br />
<form id="example4" >
<input type="text" name="t1" class="validate(required)"> <br />
<input type="text" name="t2" class="validate(required, digits)"> <br />
<input type="text" name="t3" class="validate(required, email)"> <br />
<input type="text" name="t4" class="validate(required, url)"> <br />
<input type="text" name="t5" class="validate(required, username)"> <br />
<br><br>
<input type="submit">
</form>
</body>
</html>