Using jQuery is there a way to find the farthest (deepest, or most nested) child element?

后端 未结 5 739
南笙
南笙 2020-12-11 11:25

If I have a set of elements:

Text 1
5条回答
  •  醉梦人生
    2020-12-11 12:02

    You need to use the :last filter

    $('.start').find(':last');
    

    Working fiddle: http://jsfiddle.net/BmEzd/1/

提交回复
热议问题