jQuery get all images within an element larger than a specific size
问题 So I have an image placeholder and I want to load the first image from the HTML within a DIV element that is larger than 70px width or height. Then provide a next and previous link to load the next image that is larger than 70px. I know jQuery has a next & prev selector but I'm not sure how I would tie this in with next and previous links or specify an image size. 回答1: To get all images larger that some size you can use something like this: var allImages = $('img', yourDivElement) var