j('#btnReset11').click(function () { j("#divErrorMessage ul li").not(':first').remove(); j("#divErrorMessage").hide(); j("#divSuccessMessage").hide(); j("#includeSelectAllOption").find("option").removeAttr("selected"); j("#chkRoles ul li").removeClass("active"); j("#chkRoles .btn-group").find("button").removeAttr('title'); j("#chkRoles .btn-group").find("button").text('Select'); var value = j("#selectedCheckboxes").val(); valueItems = value.split(", "); for (var i = 0; i < valueItems.length; i++) { j('#' + valueItems[i]).attr('selected', 'selected'); j("#chkRoles ul li input[value=" + valueItems[i] + "]").parent().parent().parent().addClass("active"); var title = j("#chkRoles .btn-group").find("button").title; j("#chkRoles .btn-group").find("button").removeAttr(title); } if (valueItems.length > 0) { j("#chkRoles .btn-group").find("button").text(valueItems.length + ' selected'); } else { j("#chkRoles .btn-group").find("button").text('Select'); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)