2
Reply

jquery validations

aditya immadi

aditya immadi

Jun 8 2016 3:33 AM
245
 
 
Hai all
 
i wrote this one for simple validations but   in this line <%=TxtName.UniqueID %> the  (:) shows eror expected identifier sting or number.. i dont knoq what is wrong with that can any body explain me
 
<script type="text/javascript">
$(document).ready(function () {
$("#form1").validate({
rules: {
<%=TxtName.UniqueID %>:{----expected identifier sting or number..
required:true
}
},
messages: {
<%=TxtName.UniqueID %>:{----
required: "* Required Field *"
},
},
});
});
 
TIA 

Answers (2)