jQuery | How to Set Dropdown Values for Single and Multiple Selection

The dropdown select box can have single and multiple selections. The muli selection is enabled by adding multiple attribute property.

To set the value of the select box in the jQuery use val() method. To set a single value in dropdown pass value as string in val() method and an array of values in case of multi-selection

Read more