页面组件是酱紫:
需要酱样写:
<html:select property="xxxEntity.xxxSelect">
<html:option value="0">待审批</html:option>
<html:option value="1">审批通过</html:option>
<html:option value="2">审批拒绝</html:option>
</html:select>
需要酱样写:
<script type="text/javascript">
setXxxSelect();
function setXxxSelect() {
var xxxSelect = document.getElementsByName("xxxEntity.xxxSelect")[0];
xxxSelect.options.length=0;//先清空
xxxSelect.options.add(new Option("请选择","-1"));
xxxSelect.options.add(new Option("一审中","0"));
xxxSelect.options.add(new Option("二审中","1"));
xxxSelect.options.add(new Option("已生效","2"));
xxxSelect.options.add(new Option("无效","3"));
}
</script>