Answers for "jQuery input select option value and text"

2

get text selected option jquery

$('#id option:selected').text()
Posted by: Guest on December-16-2019
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 input select option value and text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language