LoginSignup
9
10

More than 5 years have passed since last update.

jQueryでthisの子孫要素取得

Posted at

なぜかよく忘れるのでメモ。

親要素取得
$(this).parent( _selector_ )

子要素取得
$(this).children( _selector_ )

子孫要素取得
$(this).find( _selector_ )

9
10
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
9
10