$(function () { if ($(".mrp-radio:checked").length > 0) //if their is a "soft" re-load, check if the user did make a selection, reset the state { $(".mrp-selected").removeClass("mrp-selected"); $(".mrp-radio:checked").parent().addClass("mrp-selected"); } $('.mrp-radio').parent().on('click', function () { $(".mrp-selected").removeClass("mrp-selected"); $(this).find('.mrp-radio').prop("checked", true); $(this).toggleClass('mrp-selected', $(this).find('.mrp-radio').prop('checked')); }); }); //# sourceMappingURL=mrpradioclick.js.map