jQuery selector returns prevObject instead of normal element

后端 未结 4 1149
一生所求
一生所求 2021-02-01 02:22

I have some problems with selecting elements, with Jquery. When i try to select a element:

var images = $(\"#htmlChunk\").find(\"img.Thumb\");
console.log(images         


        
4条回答
  •  情歌与酒
    2021-02-01 03:09

    It looks like your trying to select class ".htmlChunk", but does not exist. Try selecting by id instead.

    var images = $("#htmlChunk").find("img.Thumb");
    

提交回复
热议问题