get selected value of dropdown in jquery by id

This is done using the select id. . selectedIndex]. Get Selected Option from Dropdown with jQuery? With jQuery, it’s easy to get selected text from a drop-down list with :selected. Method to get Selected Value Option Text from a select box: To change the selected value of a drop-down list, use the val() method. You can handle the dropdown's change event (if you're using select), fetch its value as an id of the field you want to show. You can take a look there if you want. This property returns a String representing the value attribute of the