jQuery | Get Selected Value and Text from Dropdown/ Selectbox

We can get value and text value of the option selected in the Dropdown using jQuery val() and text() methods.

For getting the value of the selected option from Dropdown use val() method and for text string available for the selected option will be retrieved using text() method as shown below:


Binding Change Event on Select Dropdown

Using the id selector, bind a change event and get value and text string

Getting on Button Click

We can also get value and text using the ID selector of Dropdown control


Leave a Reply

Notify of