Click here to Skip to main content
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>
<script src="../../Scripts/jquery.validate.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 2:22am
Edited 30-Oct-12 0:47am
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 OriginalGriff 350
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 PIEBALDconsult 110
4 Sergey Alexandrovich Kryukov 104
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 30 Oct 2012
Copyright © CodeProject, 1999-2014
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