How to get responsive validation with jQuery in ASP.NET?
Hi to all.I'm completely new to jQuery.Recently i started to implement jQuery for different purposes in my ASP.NET Web application.Now i'm using jQuery for client side validation .So,can anyone help me in getting the following type of validation with jQuery in ASP.NET.


Thanigainathan SiranjeeviPosted May 16, 2013, 3:16 AM
$().ready(function() { /
/ validate the comment form when it is submitted
$("#commentForm").validate(); // validate signup form on keyup and submit
$("#signupForm").validate(
{
rules:
{
firstname: "required", lastname: "required", username: { required: true, minlength: 2 }, password: { required: true, minlength: 5 },
confirm_password: { required: true, minlength: 5, equalTo: "#password" },
email: { required: true, email: true },
topic: { required: "#newsletter:checked", minlength: 2 },
agree: "required" },
messages: { firstname: "Please enter your firstname", lastname: "Please enter your lastname",
username: { required: "Please enter a username", minlength: "Your username must consist of at least 2 characters" },
password: { required: "Please provide a password", minlength: "Your password must be at least 5 characters long" },
confirm_password: { required: "Please provide a password", minlength: "Your password must be at least 5 characters long",
equalTo: "Please enter the same password as above" },
email: "Please enter a valid email address", agree: "Please accept our policy"
}
});
}
You have to attach this to the form