forked from FormulaMonks/jquery-watermark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
33 lines (26 loc) · 1.18 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="ui.watermark.js"></script>
<style type="text/css">
input.watermark { color: #888; }
</style>
</head>
<body>
<form id="search">
<input type="text" title="Type to search" /><br /><br />
<input type="password" title="Type something secret" /><br /><br />
<textarea title="Type a description"></textarea><br /><br />
<input type="text" value="some default value" title="a watermark" />
</form>
<script type="text/javascript">
$(document).ready(function() {
$("form").watermark();
// $("form").watermark({ ignoreDefaultValue: true });
});
</script>
</body>
</html>