

我要用$!{hour}这种方式保持选中,我写了几次都没成功,应该怎么写?
3条回答 默认 最新
斯洛文尼亚旅游 2015-10-16 03:54关注设置select的值为你提交的值
<select name="hour" id="shour">...</select> <script> document.getElementById('shour').value='<%=存储提交的值的变量名称%>' </script>解决 无用评论 打赏 举报
设置select的值为你提交的值
<select name="hour" id="shour">...</select>
<script>
document.getElementById('shour').value='<%=存储提交的值的变量名称%>'
</script>