jQuery ebeveyn soyundan Seçici

❮ jQuery Seçiciler

Örnek

Bir <div> öğesinin soyundan gelen tüm <span> öğelerini seçin:

$("div span")

Tanım ve Kullanım

("Üst alt öğe") seçicisi, belirtilen bir öğenin alt öğeleri olan tüm öğeleri seçer.

Bir öğenin soyundan gelen, o öğenin çocuğu, torunu, torununun torunu vb. olabilir.


Sözdizimi

("parent descendant")

Parameter Description
parent Required. Specifies the parent element to be selected
descendant Required. Specifies the descendant element (of the specified parent element) to be selected

Kendiniz Deneyin - Örnek


tüm <li> öğelerini nasıl seçersiniz.


❮ jQuery Seçiciler