用jQuery选中 select 中的一个 option 选项

$("#select option[value='haha'] ").attr("selected","selected");

这样就选中了.code

相关文章
相关标签/搜索