select下拉菜单自动选中

select下拉菜单自动选中方法
<select name="respectiveGrid"> <option value="" selected="selected">请选择所属网格</option> <option value="1" ${shCaseResult.shCase.occurrenceAddress==1?'selected':''}>网格1</option> <option value="2" ${shCaseResult.shCase.occurrenceAddress==2?'selected':''}>网格2</option> </select>

猜你喜欢

转载自blog.csdn.net/Peng521520aj/article/details/88682185
今日推荐