function User_ModifyRole_Save() { var selectedRoles = $("input[name='RoleList']:checked").map(function (index, elem) { return $(elem).val(); }).get().join(','); $.post(CMS_SystemConfig.VirtualDirectoryPath + '/User/SaveRoles', { userID: $.SystemGeneral.getUrlParam("UserID"), roleIDs: selectedRoles }, EMISFunction.FormSuccess); }