<script src="jquery-1.3.js"></script>
<script src="jquery.validate.js"></script>
<style>
.abc{
color:red;
font-weight:bold;
}
</style>
<script>
function fun1()
{
$("#frm1").validate({errorclass:"abc"})
}
</script>
<body onload="fun1()">
<form method="post" action="p1.html" id="frm1">
Uesr Name:<input type="text" name="t1" class="required"><br>
PassWord:<input type="password" name="t2" class="required number" id="t2" minlength="5" maxlength="16"><br>
Retype Password:<input type="password" name="t3" class="required number" minlength="5" maxlength="16"><br>
URL:<input type="text" name="t4" class="required url"><br>
Email-Id:<input type="text" name="t5" class="email"><br>
Date:<input type="text" name="t6" class="required date"><br>
<input type="submit" name="sub">
</form>
</body>
0 comments:
Post a Comment