jQuery aのイベントでリンクさせない処理2
2010年04月19日(月)
参考
http://semooh.jp/jquery/cont/doc/event/
eventオブジェクト.preventDefault()でブラウザの初期アクションをキャンセルできるそうです。
前述のreturn falseの方がお手軽な気がします。
使いどころだと思います。
$("#test a").click(function (e) {
e.preventDefault();
}
http://blog.macaroniworks.net/2010/03/jquery-aのイベントでリンクさせない処理/
関連記事
- jQuery aのイベントでリンクさせない処理2
- jQuery 要素の順番を調べるため、またindex()をつかう
- jQuery submitでconfirm
- jQuery aのイベントでリンクさせない処理
- jQuery Eventsが興味深い
- AS3 TweenerのsetTimeScaleを試すつもりが
- jQuery はじめてのjQueryプラグイン(駄作)
- Tweener addCallでタイマーの代わりに使ってみたい
- jQuery 使えそうなサンプル
- jQuery 1.4がリリースされてました。
- jQuery liveがすごい便利
- jQuery フェードイン完了を待つ
- jQuery プラグイン修正版
- AS3 Event.REMOVED記念日
- jQuery シェイクする