HI i have 4 gridview in one form...i have to check all text field if someone select main check box...
my code is working only on one grid view..its not working on other grid view.
what should i do?
my code is
<script type="text/javascript">
function checkAll(chkid)
{
var chk = document.getElementById(chkid);
var allchk = document.getElementsByName("contacts");
for (var i = 0; i < allchk.length; i++) {
allchk[i].checked = chk.checked;
}
}
</script>
Regards..
Farhad