This is my textbox
Jquery
.
.
.
form2.validate({
.
.
.
rules: {
name:{
minlength: 2,
required: true
},
..
.
How I change this jQuery to work for that server side textbox(txtCustomerID).
This Jquery is woring for HTML controls for (name) attribute but I am not able to make this work for server side textbox.
Kindly Help me.
Thanks

Manas MohapatraRank #182 · 13.2K reputationPosted Aug 19, 2015, 9:50 PM EDT
hasan shamsi6 reputationPosted Aug 19, 2015, 10:07 PM EDT
hasan shamsi6 reputationPosted Aug 19, 2015, 10:09 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 19, 2015, 11:35 PM EDT
rules: {
<%=txtName.ClientID%>:{
required: "required"
}
},
messages: {
<%=txtName.ClientID%>: "Name is required"
}