日期:2014-05-16 浏览次数:20432 次
<script type="text/javascript" language="javascript">
function test(){
alert("开始任务");
document.getElementById("myform").submit();
}
</script>
<#list returnMap.dataList as track>
<form id="myform" action="../editData/workTrackStart.do" method="post">
<input type="hidden" name="id" value="${track.id}">
<tr>
<td>${track_index+1+returnMap.pageOff.pageSize*(returnMap.pageOff.pageNo-1)}</td>
<td>${track.content}</td>
<td>${track.consumeTime}</td>
<td>${track.summary}</td>
<td>
<select>
<option>操作</option>
<option>编辑</option>
<option onClick="test()">开始</option>
<option>结束</option>
<option>删除</option>
</select>
</td>
</tr>
</form>
</#list>
function optionChanged() {
var selectObj = document.getElementById("select");
var selectIdx = selectObj.selectedIndex;
var optionValue = selectObj.options[selectIdx].value;
if (optionValue == "提交") {
document.getElementById("myform").submit();
}
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$("select").change(function(){