0
我不知道爲什麼,但是當我通過提交按鈕提交表單時,它從頁面消失並且只在刷新後纔再次出現。我在這裏嘗試了一些類似的問題的答案在stackoverflow,但沒有爲我工作。按鈕點擊後頁面提交表格消失
這裏是我的html:
<div id="lblNewAppPatient" class="menu-content">
<form class="form-horizontal form" id="validate-form">
<div class="form-group">
<label class="control-label col-sm-2" for="date">Date:</label>
<div class="col-sm-2 " class="dpckr" >
<!-- <input class="form-control " id="date " name="date " placeholder="MM/DD/YYY " type="text "/> -->
<input id="date" type="text" class="form-control datepicker" name="date" required>
</div>
</div>
<div class="form-group ">
<label class="control-label col-sm-2 " for="text ">Hour:</label>
</div>
<div class="form-group ">
<div class="col-sm-offset-2 col-sm-10 ">
<button id="saveAppt" type="button" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</div>