-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·82 lines (79 loc) · 2.32 KB
/
index.html
File metadata and controls
executable file
·82 lines (79 loc) · 2.32 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="html5-validation-engine.js"></script>
<script src="localisations/en_US.js"></script>
<style>
form > div {
margin-bottom:20px;
}
</style>
</head>
<body>
<form id="testform" action="/">
<div>
<label>Email</label>
<input id="email" type="email" required validate>
</div>
<div>
<label>Hop over</label>
<input id="hopover" type="text" required validate>
<div class="hopOver">Hop over</div>
</div>
<div>
<label>Number</label>
<input type="number" required validate>
</div>
<div>
<label>url</label>
<input type="url" required validate>
</div>
<div>
<label>Pattern mismatch</label>
<input type="text" pattern="[0-9]{4}" required validate>
</div>
<div>
<label>Maxlength</label>
<input type="text" maxlength="20" required validate>
</div>
<div>
<label>Password</label>
<input type="text" id="password" required validate>
</div>
<div>
<label>Password Match</label>
<input type="text" match="#password" data-error-message="Password must match" required validate>
</div>
<div>
<label>Select</label>
<select data-error-message="Please select a country" required>
<option value="">Choose an option</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
<div>
<label>radio</label>
<input type="radio" value="1" name="radiocheck" />
<input type="radio" value="2" name="radiocheck" required data-error-message="Please select one option"/>
</div>
<br />
<input type="submit" value="submit">
</form>
<script>
$(document).html5ValidationEngine();
$("#testform").on("submit", function(){
console.log("shit")
})
</script>
</body>
</html>