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

时间:2018-08-30 17:18:00   收藏:0   阅读:593

<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>

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!