Click here to Skip to main content
11,705,098 members (46,339 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# jQuery MVC3
i am using inbuild validation js but so i getting error

please help me

//// script link ///////////
<script src="../../Scripts/jquery-1.5.1.js" type="text/javascript"></script>
/// jquery function

$().ready(function () {
          $("#frmLogin").validate({
               rules:
                   {
                       Email:
                           {
                               required: true,
                               email: true
                           },
                       Password:
                           {
                               required: true,
                               minlength: 6
                           }
                   },
               message:
                   {
                       Email:
                           {
                               required: "Email is required",
                               email : "Enter Valid Email id "
                           },
                       Password:
                           {
                               required: "Password is required",
                               minlength: 6
                           }
                   }
          });
      });
ERROR:
TypeError: $("#frmLogin").validate is not a function
[Break On This Error]
 
minlength: 6

when i write $("#frmLogin").validate({ after dot then validate function not showing....

and i am using ASP.NET 4.0 , MVC 3...


Please help me....
Posted 29-Oct-12 1:22am
Edited 29-Oct-12 23:47pm
v4
Comments
vivektiwari97701 at 29-Oct-12 8:26am
   
its not inougth info ..can u provide More code ...?
aspdotnet-Rajkumar at 29-Oct-12 8:58am
   
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>

OR




<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js"></script>


your script url is wrong.. u can check this too
Sandeep Mewara at 29-Oct-12 11:57am
   
Is this related to wordpress?
Sergey Alexandrovich Kryukov at 29-Oct-12 14:24pm
   
Not a question, not clear...
--SA

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 595
1 OriginalGriff 289
2 Andy Lanng 175
3 CPallini 162
4 ppolymorphe 126
0 OriginalGriff 8,958
1 Sergey Alexandrovich Kryukov 8,276
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web04 | 2.8.150819.1 | Last Updated 30 Oct 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