2023-05-16 10:50:42 +08:00

19 lines
511 B
JavaScript

$(function()
{
$("[id*='account']").change(function()
{
var $account = $(this);
$("[id*='account']").each(function()
{
if($(this).val() == $account.val() && $(this).attr('id') != $account.attr('id'))
{
alert(errorSameAccount);
$account.val('').trigger("chosen:updated");
return false;
}
})
$(this).parent().parent('tr').find("[id*='role']").val(roles[$(this).val()]);
})
})