jQueryのchange()メソッドを使うときブラウザ間の挙動に注意しなければならない。
Firefoxではinputのcheckboxをクリックした際focusは外れてイベントが発火するが、IEやChromeでは外れずイベントが発火しない。
ちなみにjQuery1.5の話なので最新版だと違うかもしれない。
何か歴史的な経緯のためjQueryの古い版を使っている人は注意したほうがいい。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme