私はボタンをクリックするとファンクション1を呼び出し、別のファンクション2を呼び出します。 function2が条件を満たしていれば、それはfalseを返してそこで消滅しますが、function1の残りの部分が実行され、フォームが送信されます。私はJavaScriptに新しいです。関数1で私は「返品偽」を持っていますが、
<input type="button" value="Submit" onclick="function1()" />
function function1() {
function2();
//execute rest of function
}
function2() {
var this;
var that;
if(!this || !that) {
alert("You did not fill out fields on the form under Tab1");
return false; //I thought it was supposed to stop here
}
}
申し訳ありませんが、実際のコード次のようになります。 JackSki