Click here to Skip to main content
Rate this: bad
good
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 12-Nov-12 0:57am
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 at 12-Nov-12 8:09am
   
thanks..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Comments
amitkumar5734 at 12-Nov-12 8:09am
   
thanks..
Tadit Dash at 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
0 Sergey Alexandrovich Kryukov 240
1 CHill60 210
2 Zoltán Zörgő 170
3 Peter Leow 170
4 Richard Deeming 166
0 Sergey Alexandrovich Kryukov 9,248
1 OriginalGriff 6,806
2 Peter Leow 4,432
3 Zoltán Zörgő 3,919
4 Richard MacCutchan 2,782


Advertise | Privacy | Mobile
Web02 | 2.8.150129.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2015
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