JSP默认选中下拉框的某一项

时间:2014-02-21 08:46:40   收藏:0   阅读:556

 

 

1
2
3
4
5
6
7
8
<select id="salesInventory_${s.index}" style="width: 98%;">
                        <option value="">-请选择-</option>
                        <c:forEach var="salesInventory" items="${salesInventoryList}">
                            <option value="${salesInventory.propertyCode}"
                                <c:if test="${salesInventory.propertyValue==‘备件库存‘}">selected</c:if>>${salesInventory.propertyValue} 
                            </option>
                        </c:forEach>
                    </select>

原文:http://www.cnblogs.com/kyxyes/p/3558350.html

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