disable jquery-chosen dropdown
I have a select div that I'm using the chosen jquery plugin to style and add features to (most notably, search). The div looks something like this, <select data-placeholder="add a foobar" id="foobar" style="width: 350px;"> <option value=""></option> </select> And I'm using the chosen plugin like this, $('#foobar').chosen(); While some AJAX is loading, I'd like to disable the entire <select> div. Maybe with something like this, $('#foobar').disable() or this $('#foobar').prop('disabled', true) I think you get the idea. Any ideas on how to do this? I've tried a number of different things, like