前端配合struts2的一些按钮选中

单选按钮选中

$("input[name='brand.isShow'][value=${brand.isShow}]").attr("checked",true);

复选框选中

$("select[name='goods.goodsType.uuid']").val(${goods.goodsType.uuid});

下拉列表选中

$("[name='goods.isReal']:checkbox").attr("checked", ${goods.isReal});

 

 

posted @ 2014-07-03 10:56  Bright Moon ‘ s Blog  阅读(237)  评论(0编辑  收藏  举报