Hello I want to chnage the background to the latest radio btn clicked like in the atached image
I have made somecode but this is not doing the job I have strated like this jQuery(':radio:last:checked').length
I thought that by this way I will get one result and I was right then I wrote it like this
jQuery(document).ready(function(){
jQuery(':radio:checked').click(function(){
if(jQuery(this).is(':last')){
jQuery(this).closest('td').css('background','blue');
}
else if(jQuery(this).is(':not(':last')')){
jQuery(this).closest('td').css('background','none');
}
});
});
Can somenody help me?
Thank you in advance