I need some help with javascript. Here is the link to the code in JSFIDDLE: http://jsfiddle.net/Gopher69/B98kZ/4/My JS is: \[code\]$(document).ready(function() {//add the Selected class to the checked radio button$('[type=radio]').parent().addClass("selected");//If another radio button is clicked, add the select class, and remove it from the previously selected radio$('input').click(function() { $('input:notchecked)').parent().removeClass("radio validate-one-required-by-name product-custom-option").find("class").html("radio validate-one-required-by-name product-custom-option"); $('input:checked').parent().addClass("radio validate-one-required-by-name product-custom-option").find("class").html("radio validate-one-required-by-name product-custom-option active");});});\[/code\]I want to adjust the the background color for the radio buttons just like I did with the hover effect with css. So I need to add something like "checked" to the class when the radiobutton is active. I found this post but I'm juts not getting foreword: jQuery Checkbox selection and change classIf somebody could help me out, I would be very thankfull.