jquery如何根据值设置默认的选中项


  本文标签:jquery,默认选项

复制代码 代码如下:

$("#objtype option[value={$_GET[objtype]}]").attr("selected",true);
$("#charttype option[value={$_GET[charttype]}]").attr("selected",true);