I have some checkboxes in each row in my table. Each one checkbox has name=\'myName\' because I want to select only one checkbox in each row. But something I\'m
name=\'myName\'
$(function () { $('input[type=checkbox]').click(function () { var chks = document.getElementById('<%= chkRoleInTransaction.ClientID %>').getElementsByTagName('INPUT'); for (i = 0; i < chks.length; i++) { chks[i].checked = false; } if (chks.length > 1) $(this)[0].checked = true; }); });