0

I'm trying to remove the chosen disabled attribute but not working.

$('#check_book').prop('disabled', true);
Mr. Alien
  • 153,751
  • 34
  • 298
  • 278
Sohail Ahmad
  • 7,309
  • 5
  • 27
  • 46

3 Answers3

0

to add disabled attribute use,

$('#check_book').prop('disabled', true);

to remove disabled attribute use

$('#check_book').prop('disabled', false);

or use

$('#check_book').removeAttr('disabled');
Chukwuemeka Ihedoro
  • 595
  • 1
  • 5
  • 17
0

jQuery has .removeProp() method, try this

$('#check_book').removeProp('disabled');
pietroSV
  • 27
  • 5
0

got it

$('#check_book').removeAttr('disabled', true).trigger("chosen:updated");
Sohail Ahmad
  • 7,309
  • 5
  • 27
  • 46