The .val() method is primarily used to get the values of form elements such as input, select and textarea.When called on an empty collection, it returns undefined.. This method is a shortcut for .on( "change", handler ) in the first two variations, and .trigger( "change" ) in the third.. It helps to user for reference of the input information or content. Topic: JavaScript / jQuery Prev|Next. Introduction to jQuery Select Option. How to Get the Value of Selected Option in a Select Box Using jQuery. With jQuery, it is easy to writing one line of code to change the selected value from a drop-down list. You can use the jQuery :selected selector in combination with the val() method to find the selected option value in a select box or dropdown list. The HTML select element option can easily set selected using jQuery – $(selector).val(option-value);. In this tutorial, I show how you can dynamically set an option selected in Select2 with jQuery. Suppose, you have a select element and you need to select one of its options based on one of its values. It adds search features, allows to add an image with options.. The change event is sent to an element when its value changes. This event is limited to elements,