Answers for "jquery get the select option value"

2

get text selected option jquery

$('#id option:selected').text()
Posted by: Guest on December-16-2019
1

get text in select jquery

$("#id option:selected").text();
Posted by: Guest on May-01-2020
-1

jquery get selected option value

var selectedOptionText = $('#mySelectID').find(":selected").text();//selected option text
var selectedOptionVal = $('#mySelectID').find(":selected").val();//selected option value
Posted by: Guest on March-27-2021

Code answers related to "jquery get the select option value"

Browse Popular Code Answers by Language