[转载]下拉框数据回显方法

2017-03-10  本文已影响56人  zxk175
<select name="grader"  >   
      <option value="0">-请选择-</option>   
      <option value="1" <c:if test="${'1' eq curStatus}">selected</c:if> >男</option>  
      <option value="2" <c:if test="${'2' eq curStatus}">selected</c:if> >女</option>
 </select>

原文地址

上一篇 下一篇

猜你喜欢

热点阅读