Skip to content

Instantly share code, notes, and snippets.

@ErMandeep
Created November 24, 2020 07:18
Show Gist options
  • Save ErMandeep/ff788dce526fcce1c39905add310c449 to your computer and use it in GitHub Desktop.
Save ErMandeep/ff788dce526fcce1c39905add310c449 to your computer and use it in GitHub Desktop.
select chosen option using jquery
select chosen multiple value using id
$("#herb_cat1").val(["product", "premix"]).trigger("liszt:updated");
select chosen single value using id
$("#herb_cat1").val(["product"]).trigger("liszt:updated");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment