radio button and checkbox are placed on inner grid. in my problem radio button is working but check box is not working, all the check box is select. i need atleast 2 check box is select using inner grid.. if more than 2 check box select i want error is display...how can i solve this problem
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Vote.aspx.cs" Inherits="CollegeElection.Vote" %>
function SelectSingleRadiobutton(rdBtnID) {
//process the radio button Being checked.
var rduser = $(document.getElementById(rdBtnID));
rduser.closest('TR').addClass('SelectedRowStyle');
rduser.checked = true;
//process all other radio buttons (excluding the the radio button Being checked).
var list = rduser.closest('table').find("INPUT[type='radio']").not(rduser);
list.attr('checked', false);
list.closest('TR').removeClass('SelectedRowStyle');
}
function SelectAllCheckboxes(chk) {
$('#<%=gdPosition.ClientID %> >tbody >tr >td >input:checkbox').attr('checked', chk.checked);
}
.auto-style1 {
width: 104px;
}
.SelectedRowStyle
{
background-color: yellow;
}
| REGISTER NO | |
| |
| STUDENT NAME: | |
| BATCH NAME: |
<%--- onclick="singleRbtnSelect(this);"---%>
<%-- onclick="javascript:SelectheaderCheckboxes(header.id)" --%>

Replies
Know the answer? Post it — somebody with the same question will find it here.