0

Всем привет. Есть такой код

<select class="form-control" name="area" disabled  required>

При определенный действиях должно отключаться свойство disabled

$('select[name="area"]')[0].disabled = true;

Но оно почему то не отключается. Что делать?

1
  • $('select[name="area"]')[0].removeAttribute('disabled');
    – XelaNimed
    27 янв 2023 в 9:45

1 ответ 1

0

$('select[name="area"]')[0].prop('disabled', true);

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.