-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaceholder_jquery.html
More file actions
48 lines (47 loc) · 1.31 KB
/
placeholder_jquery.html
File metadata and controls
48 lines (47 loc) · 1.31 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>CSS Newbie Example: Test for Placeholder Support</title>
<link href="placeholder.css" media="screen" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="scripts/jquery-1.4.4.min.js"><\/script>')</script>
<script src="placeholder.js" type="text/javascript"></script>
<script type="text/javascript">
placeholder.init();
</script>
<style>
body {
font: x-large/1.4 Georgia, "Times New Roman", Times, serif;
text-align: center; }
#infobox {
width: 400px;
margin: 20px auto;
padding: 20px;
color: #333;
background-color: #9fe1ff;
border: 4px solid #333;
/* Our massive border-radius stack. */
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-o-border-radius: 10px;
-khtml-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 0 0 5px #333;
}
#infobox input {
width: 80%;
}
</style>
</head>
<body>
<div id="infobox">
<div>
<input type="text" placeholder="This works in all modern browsers!" />
</div>
<div>
<textarea placeholder="Write your comments here"></textarea>
</div>
</div>
</body>
</html>