在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);}
相关新闻
- 2024有奥运会吗 下一节奥运会在哪里2024
- 京东买的海尔热水器保修多长时间 海尔热水器24小时服务电话
- 什么小吃利润大 利润高又好卖的小吃有哪些
- 什么颜色的偏光镜好 太阳镜什么颜色好
- 买的半程票怎么在火车上补票 没有全程票买到中途再补票
- 中铁项目部经理是什么级别 中国铁建老总什么级别
- 企业会计准则和小企业会计准则属于什么 小企业会计准则会计科目
- 最适合新婚夫妇看的十部电影 夫妻之间看的好看的电影
- 秋天的第一杯奶茶红包多少合适 秋天第一杯奶茶52块钱图片
- 读湖南文理学院师范类专业毕业后发教师资格证吗 师范生免试认定教师资格证
- 网络机顶盒遥控器失灵要怎么处理 机顶盒遥控器失灵怎么办
- troubleisafriend这首歌的中文意思是什么 lenkatroubleisafriend