在点击按钮中设置:
var all_options = document.getElementById("dayPlan.overtimeUnit").options;
all_options[0].selected = true;
网页中:
<select name="dayPlan.overtimeUnit" id="dayPlan.overtimeUnit" class="select" style="width:80px;height:28px;" cmps="@{overtimeUnit}">
<option id="minute" value="0">分钟</option>
<option value="1"> 半小时</option>
<option value="2"> 一小时</option>
</select></td>
以此指定默认值