在id="userType"的select上添加一个onchange事件,即:<s:select id="userType" list="#{-1:'-请选择-',2:'企业',1:'个人'}" onchange="changeUserType()"></s:select>function changeUserType(){ var _selected = jQuery("#userType").val(); var htmlTxt = "<option value='-1'>-请选择-</option>"; if(_selected==2){ htmlTxt += "<option value='2'>-基本信息-</option>"; }else{ htmlTxt += "<option value='1'>-工作信息-</option>"; htmlTxt += "<option value='2'>-基本信息-</option>"; htmlTxt += "<option value='3'>-联系信息-</option>"; } jQuery("#auditStatus").html(htmlTxt);}
相关新闻
- 镀亮铬检验标准 盐雾试验检验标准
- 华莱仕加盟费要多少钱有什么条件吗 加盟华莱士加盟费多少钱
- 北京马拉松起跑时间 北京马拉松冠军诞生
- 冰冻虾的10种最佳吃法 冰冻虾的家常做法大全
- 人民币第二套共有多少面值 第二套人民币图片及价格
- 室内空气检测跟除甲醛是一个吗 室内空气治理除甲醛
- 保卫江苏战斗被誉为红色小歌仙的是谁 红色少年的故事小歌仙是谁
- 笔记本的鼠标触摸板怎么使用 笔记本触摸板怎么用
- 属兔的狮子座女生是一个什么样的女生 狮子座女生性格特点
- 2021保卫萝卜3码头35关攻略 保卫萝卜挑战35攻略
- 100年和一百周年有什么区别 100年庆祝大会流程
- 为什么theshy不说中文 theshy是中国人吗