Answers for "get elemented selected jquery"

1

get selected option jquery

$( "#myselect option:selected" ).text();
Posted by: Guest on October-06-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

Browse Popular Code Answers by Language