jquery validation
Posted
by
Chandrasekhar
on Stack Overflow
See other posts from Stack Overflow
or by Chandrasekhar
Published on 2011-04-13T11:48:12Z
Indexed on
2012/06/24
9:16 UTC
Read the original article
Hit count: 260
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?
© Stack Overflow or respective owner