jQuery selectors: logical OR

前端 未结 6 1903
我在风中等你
我在风中等你 2021-01-03 19:08

I can\'t seem to see the forest for the trees right now (Looked at the api docs already).
It has to do with jQuery selectors: What I\'m trying to do is to select all ele

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 19:49

    jQuery uses the CSS selector syntax, so if you know that, just put the same selectors into jQuery and bob's your metaphorical uncle. jQuery uses the sizzle selector engine which supports virtually all CSS3 selectors :)

    As everyone has already said - the way to do it is this: $content = $some_elements.eq(0).nextUntil('.headsection, subtitle');

提交回复
热议问题