Answers for "jquery select button by text"

2

jquery select option by text

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

jquery select text with event target

$(evt.target).text()
Posted by: Guest on October-25-2021

Code answers related to "jquery select button by text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language