I don't what is the error in this code, Jquery validation is not working with master page,can any one help me cuz am not sure where I'm going wrong
<%@ Page Title="" Language="C#" MasterPageFile="~/CareerMasterPage.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
$(document).ready(function() {
$("#form1").validate({
rules: {
<%=txtName.ClientID%>: {
minlength: 2,
required: true
},
<%=txtEmail.ClientID%>: {
required: true,
email:true
}
}, messages: {
<%=txtName.ClientID%>:{
required: "* Required Field *",
minlength: "* Please enter atleast 2 characters *"
}
}
});
});
Name:
Email:
Priya AvanigaddaPosted Feb 16, 2015, 2:15 AM
Joginder BangerPosted Feb 16, 2015, 2:11 AM
try this one.