I make a jQuery Chosen drop-down like this:
$(\'.blah\').chosen();
I can\'t find how I can add options, something like:
newest chosen version changed the event name to "chosen:updated"
so your code will be like this:
$('.blah').append(""+value+""); $('.blah').val(key); // if you want it to be automatically selected $('.blah').trigger("chosen:updated");