net gridview with multiple checkbox columns like Yes, No and when I select one check box the other checkbox in the same row should be unselected.
Is there any way to handle this using javascript?
Here is my trail
function yes_Click(checkbox) {
var mygv = document.getElementById("<%=gv.ClientID %>");
for (var i = 1; i < mygv.rows.length; i++) {
mygv.rows[i].cells[myothercheckbox].getElementsByTagName("INPUT")[0].checked = !checkbox.checked;
}
}
Aucun commentaire:
Enregistrer un commentaire