Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーが必要な詳細を入力せずに送信ボタンをクリックした場合に、cakephp ajax submit を停止して送信を停止する方法はありますか。
よろしく
$ajax->submit ' create ' オプションを使用して、ユーザー JavaScript 関数 foo() を呼び出します。foo() 関数内にEvent.stop('submitButtonId');があります。submitButtonIdは送信ボタン ID です。
Event.stop() は、イベントのバブルアップを停止し、ajax の送信を妨げました。