/* Inside jqnewdesign_fi */ // Check Radio-box $(".rating input:radio").attr("checked", false); $('.rating input').click(function () { $(".rating span").removeClass('checked'); $(this).parent().addClass('checked'); }); $('input:radio').change( function(){ var userRating = this.value; $(".ratingdisplay").html("   " + userRating); }); /* Exit jqnewdesign_fi */