Question: how to set selected value of dropdown in jquery select2?
Answer: Select2 is a jQuery plugin which customizes HTML select element and makes it more user-friendly. It adds search features, allows to add an image with options. The HTML select element option can easily set selected using jQuery – $(selector). val(option-value); .