Similar to jQuery .closest() but traversing descendants?

后端 未结 16 745
情书的邮戳
情书的邮戳 2020-12-07 15:13

Is there a function similar to jQuery .closest() but for traversing descendants and returning only closest ones?

I know that there is

16条回答
  •  日久生厌
    2020-12-07 15:56

    You can just simply put,

    $("#find-my-closest-descendant").siblings('.closest:first');
    

提交回复
热议问题