Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<select id="State"> <option value="Washington">WA></option> </select>
这有效
$('#State option[value="Washington"]')
但这不是
$('#State 选项[text="WA"]')
我怎样才能做到这一点??
$('#State option:contains("WA")')
小提琴