首页 > Web开发 > 详细

jsp在select中的option中编写if标签

时间:2018-08-30 17:18:00      阅读:593      评论:0      收藏:0      [点我收藏+]

<select onchange="lxx(this)">
<option value="">全部</option>
<option value="水电" <c:if test=‘${lx=="水电"}‘>selected=selected</c:if> >水电</option>
<option value="火电" <c:if test=‘${lx=="火电"}‘>selected=selected</c:if>>火电</option>
<option value="风电" <c:if test=‘${lx=="风电"}‘>selected=selected</c:if>>风电</option>
<option value="光伏" <c:if test=‘${lx=="光伏"}‘>selected=selected</c:if>>光伏</option>
</select>

jsp在select中的option中编写if标签

原文:https://www.cnblogs.com/rdchen/p/9561325.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!