/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$(document).ready(function(){
updateRadioLabels()
$('input[type=radio]').change(updateRadioLabels)
})
function updateRadioLabels(){
$('input[type=radio]').each(function(){
$('input[name=' + this.name +'] + label').removeClass('selected');
$('input[name=' + this.name +']:checked + label').addClass('selected');
})
}
URL: add_css_class_to_selected_radio_labels
Comments
 Subscribe to comments
                    Subscribe to comments
                
                