radio button inside table not working fine

Posted by Klbaiju under jQuery on 4/10/2015 | Points: 10 | Views : 287 | Status : [Member] | Replies : 1
In my application i have radio button inside an html table.
i wrote the code for click event using jquery like this
$('body').on('click', '.op1', function () {

var id = $(this).attr("id");
var td = $(this).closest('tr').children('td');
var rk = td.eq(0).text();


problem is when i click any radio button it is activating and click another radio button it is also activate and previous one not deacivating.
how to solve this.
here radio button is inside an html table


Posted by: Jitendrasoft09 on: 4/12/2015 [Member] [MVP] Starter | Points: 25


I would suggest you to mention same class name for radio buttons and use event to activate and deactivate each of them. Refer below link-

Jitendra Kumar
If my post helps you, plz mark as an answer.

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response