Mohit Kala

Mohit Kala

  • 564
  • 2.1k
  • 137.7k

How to Select Radio Button Checked On table row Click

Feb 24 2018 9:25 PM
how to do like  i click on table row radio button will be checked
and if second tr click first will be uncheck
 
 
i write below code
 
$('#myDataTable').delegate('tbody > tr', 'click', function(){
$(this).find('input[type="radio"]').attr('checked', true);
});
 
it selects both row 
 

Answers (2)