前端配合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});
原文地址:https://www.cnblogs.com/BrightMoon/p/3821907.html