11.28

MySQL标签

下拉框的赋值
下拉框赋值的具体用法如下:
<select name="local">
<option value="华东">华东</option>
<option value="华南"
<c:if test="${param.local == \"华南\"}">selected</c:if> >华南</option>
<option value="华北"
<c:if test="${param.local == \"华北\"}">selected</c:if> >华北</option>
<option value="东南"
<c:if test="${param.local == \"东南\"}">selected</c:if> >东南</option>
<option value="西南"
<c:if test="${param.local == \"西南\"}">selected</c:if> >西南</option>
<option value="西北"
<c:if test="${param.local == \"西北\"}">selected</c:if> >西北</option>
<option value="东北"
<c:if test="${param.local == \"东北\"}">selected</c:if> >东北</option>
<option value="华中"
<c:if test="${param.local == \"华中\"}">selected</c:if> >华中</option>
</select>
原文地址:https://www.cnblogs.com/wanghaoning/p/14162030.html