-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex.html
executable file
·62 lines (50 loc) · 1.65 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
62
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery infieldLabel Plugin</title>
<link rel="stylesheet" href="assets/styles/index.css">
<link rel="stylesheet" href="jquery.infieldLabel.css">
<!-- no-js/js class switcher -->
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
</head>
<body>
<h1>jQuery infieldLabel Demo</h1>
<p>
<span class="infield-label">
<label for="fname">First Name</label>
<input type="text" name="fname" id="fname" class="input" size="50">
</span>
</p>
<p>
<span class="infield-label">
<label for="lname">Last Name</label>
<input type="text" name="lname" id="lname" class="input" size="50">
</span>
</p>
<p>
<span class="infield-label">
<label for="password">Password</label>
<input type="password" name="password" id="password" class="input" size="50">
</span>
</p>
<p>
<span class="infield-label">
<label for="message">Your Message</label>
<textarea name="message" id="message" class="textarea" rows="6"></textarea>
</span>
</p>
<!-- Javascript -->
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E="
crossorigin="anonymous"></script>
<script src="jquery.infieldLabel.js"></script>
<script>
$(function() {
$('.infield-label').infieldLabel();
});
</script>
</body>
</html>