Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
With this gist we can select/deselect an option with chosen select plugin: https://github.com/harvesthq/chosen https://github.com/harvesthq/chosen/issues/1559
$('option').prop('selected', true); //true to select all, and false to deselect.
$('select').trigger('chosen:updated');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.