Thursday, May 21, 2009

jQuery子要素の指定の仕方

  1. $('.child_class', this)
  2. $(this).children('.child_class')
  3. $(this).find('.child_class')
1、2はその要素の直後にある場合
3は孫要素も対象になる

No comments: