Please have a look on the following:
$(\'#myRadio\').change(function() {
if($(this).is(\':checked\')) {
$(this).parent().addClass(\'
Try something like this:
if($(this).is(':checked')) {
$(this).parent().parent().parent().find('.green').removeClass('green');
$(this).parent().addClass('green');
}
This will find the table element of your current radio button grouping, find any elements with the green class, and remove the class.
Alternatively, if you only have one radio button group on the page, it would be simpler to just do:
$('.green').removeClass('green');