* code for task #45435.

This commit is contained in:
王怡栋
2021-12-09 17:14:36 +08:00
parent e3e5325efb
commit 068eeee4e8
2 changed files with 21 additions and 1 deletions
+16 -1
View File
@@ -43,4 +43,19 @@ function deleteItem(obj)
{
if($('#teamForm .table tbody').children().length < 2) return false;
$(obj).closest('tr').remove();
}
}
$(document).on('change', '[id^="levels"]', function()
{
$next = $(this).closest('td').next()
if($(this).val() == '50')
{
$next.prepend('<input type="text" value="" class="form-control disabled" disabled autocomplete="off" />');
$next.find('[id^="expires"]').addClass('hidden');
}
else
{
$next.find('[id^="expires"]').removeClass('hidden');
$next.find('input.disabled').remove();
}
})