Click here to Skip to main content
12,403,983 members (68,573 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 11-Nov-12 23:57pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

 $(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
  Permalink  
Comments
amitkumar5734 12-Nov-12 8:09am
   
thanks..
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Comments
amitkumar5734 12-Nov-12 8:09am
   
thanks..
Tadit Dash 12-Nov-12 8:55am
   
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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100