aditya immadi

aditya immadi

  • NA
  • 215
  • 23.8k

jquery validations

Jun 8 2016 3:33 AM
 
 
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)