jquery select first child with class of a parent with class

后端 未结 4 1724
北荒
北荒 2021-01-01 10:27

How can i select only the first child of a particular class of a parent with a particular class for the purposes of clone()?

4条回答
  •  囚心锁ツ
    2021-01-01 10:39

    You're passing an invalid selector to children(). Instead of

    .children('.line_item_wrapper :first')
    

    try

    .children('.line_item_wrapper').first()
    

提交回复
热议问题