How to get the children of the $(this) selector?

前端 未结 18 2231
日久生厌
日久生厌 2020-11-22 05:10

I have a layout similar to this:

and would like to use a jQuery selector to selec

18条回答
  •  臣服心动
    2020-11-22 05:32

    Without knowing the ID of the DIV I think you could select the IMG like this:

    $("#"+$(this).attr("id")+" img:first")
    

提交回复
热议问题