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

 

 

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>

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

上一篇:网站集成PayPal如何设置


下一篇:PHP错误解决:Fatal error: Unknown: Failed opening required ...