jQuery(document.body).on('change', '.singlechx', function () { var cbxname = $(this).attr("name"); if ($(this).prop("checked") == true) { $("input[name='" + cbxname + "']").prop("checked", false); $(this).prop("checked", true); }})