1 回答
TA贡献1825条经验 获得超6个赞
你根本没有使用JS函数,所以什么也没有发生!
对于您的情况,最简单的解决方案是替换它:
onclick =" window.location.href = '#close'; deleteData(); getData();;"
有了这个:
onclick = "onSubmit()"
这是执行此操作后的工作片段:
function onSubmit(){
document.getElementById('submitButton').style.display = "none";
document.getElementById('revealProgress').style.display = "block";
return true;
}
#revealProgress{
display: none;
}
<button onclick = "onSubmit()" href="#close" id="submitButton" class="tester2" > Submit </button>
<div id = "revealProgress">
<p>Exercise: <strong id="exerciseList"></strong></p></strong></p><br>
<p>Sets: <strong id="setList"></strong></p></strong></p><br>
<p>Reps: <strong id="repList"></strong></p></strong></p><br>
<p>Weight: <strong id="weightList"></strong></p></strong></p><br>
<p>total: <strong id="totalList"></strong></p></strong></p><br>
<div id="progress_bar"></div>
</div>
- 1 回答
- 0 关注
- 102 浏览
添加回答
举报