我要用$!{hour}这种方式保持选中,我写了几次都没成功,应该怎么写?
设置select的值为你提交的值
<select name="hour" id="shour">...</select>
<script>
document.getElementById('shour').value='<%=存储提交的值的变量名称%>'
</script>
<option value="77" selected="selected">联想结算收款[77]收</option>
加 selected="selected"表示选中
做好了,要在每一个option中加一个判断#if 。。。#end