Answers for "jquery find option value by text"

8

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
2

jquery select option by text

$("#myDropdown option:contains(Option 2)").attr('selected', 'selected');
Posted by: Guest on June-16-2020

Code answers related to "jquery find option value by text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language