Answers for "how to get option selected text in jquery"

10

get text of selected option jquery

$('#id').children(':selected').text();
Posted by: Guest on March-18-2020
7

jquery selected option text

$("#mySelect option:selected").html();
Posted by: Guest on April-25-2020
1

jquery selected option text

$( "#myselect option:selected" ).text();
Posted by: Guest on October-06-2020
0

get selected option text jquery

I think this should be $("#yourdropdownid").children("option").filter(":selected").text() since is() returns a boolean of whether the object matches the selector or not.
Posted by: Guest on January-11-2021

Code answers related to "how to get option selected text in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language