-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (57 loc) · 1.56 KB
/
index.html
File metadata and controls
63 lines (57 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<title>jQuery HideLabels example page</title>
<style type="text/css" media="screen">
body {
background: #eee;
font-family: 'lucida grande', sans-serif;
}
h1 {
text-align: center;
}
#wrapper {
width: 350px;
background: #fff;
margin: 20px auto;
padding: 50px;
border-radius: 5px;
border: 5px solid #888;
}
input {
display: block;
width: 100%;
padding: 3px;
border-radius: 1px;
border: 1px solid #bbb;
font-size: 16px;
}
.form-item {
position: relative;
margin: 1em 0;
}
label.overlay {
position: absolute;
top: 4px;
left: 5px;
color: #888;
}
</style>
</head>
<body>
<h1>jQuery hideLabels example page</h1>
<div id="wrapper">
<div class="form-item">
<label class="overlay" for="name">Name</label><input type="text" name="name" value="">
</div>
<div class="form-item">
<label class="overlay" for="email">Email</label><input type="text" name="email" value="">
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.hideLabels.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$('label.overlay').hideLabels();
</script>
</body>
</html>