jQuery select ancestor

后端 未结 6 1992
清酒与你
清酒与你 2020-12-24 06:44

Is is possible to use jQuery to select an ancestor of an element?

Markup:


      
      
6条回答
  •  余生分开走
    2020-12-24 07:08

    Are you looking for parent()? jQuery Doc for parent selector. If it is different for your scenario explain what is your expected output.

提交回复
热议问题