jquery get last each if value
<p>I have this code, </p>

<pre><code>$(function () {
    $.post("fetch_data.php?url="+$('#url').val(), { }, function(response){
        var arrValues = [ &lt;?php echo $js_img_arr; ?&gt; ]; //output from php

        $.each(arrValues, function( intIndex, objValue ) {
        var img = new Image(); //creating four Image Elements
            img.src = objValue;
            img.onload = function() {
            if(img.height &gt; 100 &amp;&amp; img.width &gt; 200) {
                alert('height: ' + img.height + ' width: ' + img.width);
                //here
            }
            }
        });
    });
});
</code></pre>

<p>I am new to jquery/javascript.</p>

<p>Is it possible to get value of how many images loaded at last, let say 10 img have loaded and met the height/width criteria, i want the value of 10 images loaded.</p>

<p>Thank you.</p>
