根据select option text值自动选中下拉框
方法一:
var selectOptionText = "Baz";$("#select-1").find("option").filter(function(index) { return selectOptionText === $(this).text();}).attr("selected", "selected");
方法二:
var selectOptionText...
2013-08-20 08:54:28 ·
506 阅读 ·
0 评论