input標籤的type=submit與$().submit()應對應
阿新 • • 發佈:2019-02-07
<div class="-row -t-c -p-t40 -p-b40">
<input id="submit" name="submit" type="button" class="-btn -btn-blue -size-xl" value="修改">
<input class="-btn -btn-blue -size-xl" type="submit" value="刪除" onclick="delshop();" >
</div>
</form>
</div>
</div>
<%@ include file="../footer.jsp" %>
<script type="text/javascript">
function delshop(){
var isConfirm= window.confirm("確認刪除?");
if(isConfirm){
$("#form_loan").attr("action","/do/myshopdel").submit();
}
}
</script>
<input id="submit" name="submit" type="button" class="-btn -btn-blue -size-xl" value="修改">
<input class="-btn -btn-blue -size-xl" type="submit" value="刪除" onclick="delshop();" >
</div>
</form>
</div>
</div>
<%@ include file="../footer.jsp" %>
<script type="text/javascript">
function delshop(){
var isConfirm= window.confirm("確認刪除?");
if(isConfirm){
$("#form_loan").attr("action","/do/myshopdel").submit();
}
}
</script>