js判断radio选中

来源:互联网 发布:linux 添加网络接口 编辑:程序博客网 时间:2024/05/21 15:02


         <html:radio property="appMenuType" value="0">父菜单</html:radio>&nbsp;
         <html:radio property="appMenuType" value="1">子菜单</html:radio>&nbsp;
         <html:radio property="appMenuType" value="2">应用</html:radio>&nbsp;

 


  with(document.appMenuManageForm){
   //如果 菜单类型:子菜单
   if(appMenuType[1].checked){
            ...
    }
   }