Class.js 283 B

12345678910111213
  1. /**
  2. * 编辑
  3. */
  4. $(document).on('click', '.submit-edit', function()
  5. {
  6. // 父级禁用菜单列表选择
  7. if($(this).data('is_exist_son') == 'ok')
  8. {
  9. $('form select[name="pid"]').attr('disabled', 'disabled');
  10. } else {
  11. $('form select[name="pid"]').removeAttr('disabled');
  12. }
  13. });