LoginSignup
4
3

More than 5 years have passed since last update.

jQueryを使って、FORMでsubmitする時にconfirmする

Last updated at Posted at 2015-07-29

記事を大幅に修正しました
@naga3 さん、ご指摘ありがとうございます

;(function($) {
    $(function() {
        $('form').submit(function() {
            return confirm("Are you sure to submit?");
        });
    });
})(jQuery);
4
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3