jQuery ebeveyn > alt Seçici

❮ jQuery Seçiciler

Örnek

Bir <div> öğesinin doğrudan çocuğu olan tüm <span> öğelerini seçin:

$("div > span")

Tanım ve Kullanım

("Üst > alt") seçici, belirtilen öğenin doğrudan çocuğu olan tüm öğeleri seçer.


Sözdizimi

("parent > child")

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

Kendiniz Deneyin - Örnek


tüm <li> öğelerini seçin Bir sınıf adına sahip bir <ul> öğesinin doğrudan çocuğu olan tüm <li> öğeleri nasıl seçilir.


❮ jQuery Seçiciler