Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (26 sloc) 1.18 KB
<!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>