LoginSignup
0
0

More than 5 years have passed since last update.

jQuery-3.2.1の属性フィルタ&正規表現でアンカーが取得できない。

Posted at

最新のjQueryで、
アンカーのDOMを取ろうとしたら、取得できなかったので覚書。

main.js

// NG: 昔はとれてた→新しめのバージョンではとれなくなってる。
$('a[href^=#]')

// OK
$('a[href^="#"]')

0
0
0

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
0
0