forked from chemerisuk/formvalidation.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (59 loc) · 1.46 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="formvalidation.css">
<style type="text/css">
body, select, input {
font-size: 14px;
}
.change-lang-btn:after {
content: 'ru';
font-weight: bold;
}
.change-lang-btn:lang(ru):after {
content: 'en'
}
</style>
</head>
<body>
<button class="change-lang-btn" onclick="document.documentElement.lang = document.documentElement.lang === 'en' ? 'ru' : 'en'">
Change plugin language to
</button>
<form action="">
<p>
<label>
Your name
<input type="text" required name="name">
</label>
</p>
<p>
<label>
Your email
<input type="email" required name="email">
</label>
</p>
<p>
<label>
Your gender
<select name="gender">
<option>male</option>
<option>female</option>
</select>
</label>
</p>
<p>
<label>
Your birthdate
<input type="date" name="birthdate" required>
</label>
</p>
<p>
<input type="checkbox" name="accept" required/>
<label>I accept site rules</label>
</p>
<button type="submit">Submit</button>
</form>
<script src="formvalidation.js"></script>
</body>
</html>