Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
jquery select option by text
just_gotta_know
Programming language:
Javascript
2021-07-24 02:05:44
0
Q:
jquery select option by text
user3898238
Code:
Javascript
2021-06-03 14:20:00
$("#myDropdown option:contains(Option 2)").attr('selected', 'selected');
2
Tags
text
jquery
option
select
Related
jquery sort select options by text
set select option as selected jquery
jQuery get selected option
jquery find selected option by class
jquery get data attribute of selected option
jquery get label from select
get text of selected option jquery
jquery get selected option value
get option value jquery
get text selected option jquery
jquery select option by value
get selected option value jquery
get selected option text jquery
how to get the selected text of dropdown in jquery
jquery get all select options
jquery selected option text
select option value jquery
New to Communities?
Join the community