クリックイベントのサンプル .innerを子、.outerを親にしてそれぞれにクリックイベントのサンプルを作成した。リンクをクリックするとalertの".inner", ".outer"が表示されてからiwb.jpに遷移する。 $(".inner").click(function(){ alert(".inner"); }); $(".outer").click(function(){ alert(".outer"); }); alertの".inner", ".outer"が表示されてからiwb.jpに遷移するサンプル preventDefault()を使用するとリンクの遷移などのイベントを無効にできる。 $(".inner").click(function(e){ e.preventDefault(); alert(".inner"); }); $(".outer").click(fu
![1分でわかるreturn false; preventDefault(); stopPropagation() の違い](https://cdn-ak-scissors.b.st-hatena.com/image/square/9449c0dc0e961c833ae7aa47c2b2525a69eb1a1d/height=288;version=1;width=512/https%3A%2F%2Fiwb.jp%2Fiwbjp.png)