I am implementing jquery data table. In each row there are 2 radio buttons. My problem is in a row both radio buttons are getting selected if click on it where as in a column only one radio button is getting selected. I need exactly reverse condition. Here is my code.
initialiseDataTable : function(){
oTable = $('#example').dataTable({ bJQueryUI: true,
"bPaginate": false,
"bInfo": false,
"bRetrieve":true,
"sPaginationType": "full_numbers"})
.makeEditable({
sUpdateURL: function(value, settings)
{
return(value);
},
"aoColumns": [
{
type: 'checkbox',
onblur: function(value) {
return (value); }
},
{
onblur: function(value) {
return (value); }
},
{
onblur: function(value) {
return (value); }
},
{
type: 'radio',
onblur: function(value) {
return ("true"); }
},
{
type: 'radio',
onblur: function(value) {
return ("true"); }
}
]
});
},
In HTML file,
<%for(var i=0;i<exceptionMappingData.length;i++){%>
<%if(exceptionMappingData[i].attributes != undefined && exceptionMappingData[i].attributes !=null && exceptionMappingData[i].attributes !='') {%>
<tr>
<td><input name="" type="checkbox" id='' class=""/></td>
<td class="read_only"><%=exceptionMappingData[i].attributes.organizationVO.name%></td>
<td><%=exceptionMappingData[i].attributes.mappedBR%></td>
<td><input type="radio" id='' class="" name="docTypeGroup"/></td>
<td><input type="radio" id='' class="" name="docTypeGroup"/></td>
</tr>
<%}}%>
How to allow to select only one radio button? Also how to get selected radio button value?