forked from Topener/jQuery-html5-placeholder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
51 lines (51 loc) · 1.22 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Placeholder test page</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="html5placeholder.jquery.js"></script>
<script>
$(function(){
$(':input[placeholder]').placeholder();
});
</script>
<style>
body {width:500px;margin:20px auto;}
div {margin-bottom:10px;}
</style>
</head>
<body>
<form>
<div>
<label for="email">Email: </label>
<input type="email" id="email" placeholder="[email protected]">
</div>
<div>
<label for="foo">Password: </label>
<input type="password" id="pw" placeholder="It's like, your password">
</div>
<div>
<label>Text:
<input type="text" name="text" maxlength="6" placeholder="Hi Mom">
</label>
</div>
<div>
<label>Search:
<input type="search" name="text" placeholder="Search Things and Stuff">
</label>
</div>
<div>
<label>Telephone:
<input type="tel" name="text" placeholder="(XXX) XXX-XXXX">
</label>
</div>
<div>
<label>URL:
<input type="url" id="url" name="earl" placeholder="http://miketaylr.com">
</label>
</div>
<input type="submit">
</form>
</body>
</html>