close

1. 不能寫成 return(false);

2. 在 form tag 要加「return」。

<form action="index.jsp" method="post" onsubmit="return submitTest();">

來源:javascript :onsubmit=return false阻止form表單提交

 

arrow
arrow

    Robert 發表在 痞客邦 留言(0) 人氣()