<html:select property="cardTypeId" onchange="doGetAll()">
<html:option value="">请选择</html:option>
<html:options collection="ctList" property="cardTypeId" labelProperty="cardTypeName" />
</html:select>js:
function doGetAll(){
var id=document.forms[0].cardTypeId.value;
window.location.href="cardissueinfo.do?method=doGetAll&&cardTypeId="+id;
}
<html:option value="">请选择</html:option>
<html:options collection="ctList" property="cardTypeId" labelProperty="cardTypeName" />
</html:select>js:
function doGetAll(){
var id=document.forms[0].cardTypeId.value;
window.location.href="cardissueinfo.do?method=doGetAll&&cardTypeId="+id;
}
<html:select property="a" onchange="change()">
</html:form>
<script language="JavaScript">
function change(){
document.forms(0).submit();
}
</script>
你的值改变后就会提交,form里保存的就是改动的值。