Answers for "jquery select option by text"

8

get text of selected option jquery

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

get text selected option jquery

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

jquery selected option text

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

jquery search select option by text

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js"></script>
Posted by: Guest on February-19-2021

Code answers related to "jquery select option by text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language