jQuery – Filter image by size

$('.mydiv img').each(function() {
	var imgwidth = $(this).width();
				
	if (imgwidth < 150) {
		$(this).hide();
	} else {
	        $(this).show();
	}
});

Leave a Reply