I need to check if a <select>
has an option whose text is equal to a specific value.
For example, if there's an <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 the text.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…