Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone,
as i always find the best solution from code project.
so today i have a problem with validation. actually i have a registration form and i want to use jquery validation.
in my registration page there are some fields like, email id, password ,country,state,city,age ,gender and etc . so i want to validate this all fields with jquery validation. and validation should be in the inline validation . i don't want to show/use any popup. summary etc , only want to apply inline validation.
thank you all..
and please help me.
Posted

 
Share this answer
 
Comments
amitkumar5734 12-Nov-12 8:09am    
thanks..
Hi Amit,

Please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...

Thanks,
Tadit
JavaScript
 $(document).ready(function () {
   $("#form1").validate({
            rules: {
                       txt_mail: {
                    email: true,
                    required: true
                }
}
});


Where form1 is ur form name and txt_mail is ur textbox name
 
Share this answer
 
Comments
amitkumar5734 12-Nov-12 8:09am    
thanks..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900