forked from ten1seven/infieldLabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (46 loc) · 1.57 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
<!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 -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>jQuery infieldLabel Plugin</title>
<!-- CSS: implied media="all" -->
<link rel="stylesheet" href="stylesheets/reset.css">
<link rel="stylesheet" href="stylesheets/base.css">
<link rel="stylesheet" href="stylesheets/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>
<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>
<!-- Javascript -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.infieldLabel.js"></script>
<script>
$(function() {
$('.infield-label').infieldLabel();
});
</script>
</body>
</html>