Organizational Research By

Surprising Reserch Topic

jquery how to select an option by its text


jquery how to select an option by its text  using -'jquery'

I need to check if a select has an option whose TEXT is a specific value.

Eg <option value="123">abc</option> i would be looking for abc.

Is there a selector to do this?

Im looking for something similar to $('#select option[value="123"]'); but for text
    

asked Sep 14, 2015 by RayfordWPRr
0 votes
11 views



Related Hot Questions

7 Answers

0 votes
NULL
answered Sep 14, 2015 by MadKauffman
0 votes
NULL
answered Sep 14, 2015 by ShielaKiserv
0 votes
NULL
answered Sep 14, 2015 by ChetPiq42208
0 votes
NULL
answered Sep 14, 2015 by FredricRancl
0 votes
NULL
answered Sep 14, 2015 by GeorgeMonnie
0 votes
NULL
answered Sep 14, 2015 by HayEJO
0 votes
NULL
answered Sep 14, 2015 by Buster90Feqi

...