Created
November 24, 2020 07:18
-
-
Save ErMandeep/ff788dce526fcce1c39905add310c449 to your computer and use it in GitHub Desktop.
select chosen option using jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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