Please have a look on the following:
$(\'#myRadio\').change(function() { if($(this).is(\':checked\')) { $(this).parent().addClass(\'
my proposal is :
$('#myRadio').change(function() { _parent = $(this).parent(); if($(this).is(':checked')) { _parent.addClass('green'); } else { _parent.removeClass('green'); } });