如何通过文本而不是值选择下拉列表项?我想使用jQuery通过文本选择一个下拉项。 最佳答案 使用:contains()$("select option:contains(text)").attr('selected', true); demo