jquery validation
- by Chandrasekhar
I am adding the dynamic text boxes when click the add link. I want to do the remote validation for dynamic text boxes.
Please see the code below:
<input type="text" name="test" id="test1" />
click on add button
var sc ="<td><input type = 'text' name ='test' id ='test"+(textid+1)+"'/></td>
document.getElementById("row1-"+textid).innerHTML=sc;
Creating the 4 text fields in same way.
I am validating this text fields using jQuery like
$("#testSearchForm").validate({
rules: {
"test": {
required:true,
remote: "chkvalue.action"
}
Required validation is working fine but remote method validation is not working. Can anyone make a suggestion?