Copy the code as follows: var obj = document.getElementById("testSelect"); //Locate id
var index = obj.selectedIndex; // Select index
var text = obj.options[index].text; // Select text
var value = obj.options[index].value; // Select the value
Get selected select value in jQuery
The first method
The code copy is as follows: $('#testSelect option:selected').text();//Selected text
$('#testSelect option:selected').val();//The selected value
$("#testSelect").get(0).selectedIndex;//Index
The second way
The code copy is as follows: $("#tesetSelect").find("option:selected").text();//Selected text
$("#tesetSelect").find("option:selected").val();
$("#tesetSelect").find("option:selected").get(0).selectedIndex;
The above is all the content of JavaScript to obtain the selected value selected by the select tag. I hope it can give you a reference and I hope you can support Wulin.com more.