0

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

$('#check_book').prop('disabled', true);
Mr. Alien
  • 147,524
  • 33
  • 287
  • 271
Sohail Ahmad
  • 4,089
  • 5
  • 21
  • 40

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');
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
  • 4,089
  • 5
  • 21
  • 40