首先感谢老紫竹群中的火龙果和awusoft
<html:form action="/KK_BlacklistVehicle_UserManage.do" method="post">
<html:radio name="KK_BlacklistVehicle_UserManageForm" property="radio" value="dwxzRadio">单位:</html:radio>
<html:text property="dwcxInput" />
<html:radio name="KK_BlacklistVehicle_UserManageForm" property="radio" value="userxzRadio">用户:</html:radio>
<html:text property="usercxInput" />
<html:button property="selectDwUser" οnclick="selectDwUserJs();">查询</html:button>
</html:form>
function selectDwUserJs()
{
var objs = document.getElementsByName("radio");
for(var i=0;i<objs.length;i++)
{
if(objs[i].checked)
{
if(objs[i].value=="dwxzRadio")
{
alert("你选择了单位");
}
if(objs[i].value=="userxzRadio")
{
alert("你选择了用户");
}
}
}
document.forms[0].action='KK_BlacklistVehicle_UserManage.do' ;
document.forms[0].submit();
}