-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
35 lines (29 loc) · 1.31 KB
/
example.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>jQuery.placeHoldize</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<form action="" method="get">
<input type="text" name="name" value="" id="name" placeholder="Enter your name…" />
<br />
<input type="text" name="email" value="" id="email" placeholder="Enter your e-mail address…" />
<br />
<textarea name="msg" id="msg" placeholder="Enter a message…"></textarea>
<br />
<input type="submit" value="Submit" />
</form>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="jquery.placeholdize-0.2.2.min.js"></script>
<script type="text/javascript" charset="utf-8">
// <![CDATA[
jQuery( function()
{
jQuery( '[placeholder]' ).placeHoldize();
} );
// ]]>
</script>
</body>
</html>