Form Example



Source:
<html>
<head>
<title>JQuery Demo</title>
<script type="text/javascript" src="jquery-1.2.3.min.js"> </script>
<script type="text/javascript">
$(document).ready(function () {
$(".clearme").one("focus", function () {
$(this).val("");
});
});
</script>
</head>
<body>
<h3>Form Example</h3>
<form name="form1">
<input class="clearme" type="text" size="30" value="First" /><br />
<input class="clearme" type="text" size="30" value="Last" /><br />
</form>
</body>
</html>