Jquery使select、radio某项选中

select

$("#class").find("option[value='123']").attr("selected",true);

  

radio

$("input[name=myname]:eq(0)").attr("checked",'checked');  

 

posted @ 2015-11-25 00:22  leapMie  阅读(410)  评论(0编辑  收藏  举报