How to use each() to loop through and get values?
<p>I am using jQuery 1.4.3.</p>

<p>I have some divs that have microdata in them and I am trying to access them via jQuery in a loop.  These divs will output much like rows and columns.</p>

<pre><code>&lt;div data-row="1" data-col="1"&gt;
&lt;div data-row="1" data-col="2"&gt;
&lt;div data-row="1" data-col="3"&gt;

&lt;div data-row="2" data-col="1"&gt;
&lt;div data-row="2" data-col="2"&gt;
&lt;div data-row="2" data-col="3"&gt;

&lt;div data-row="3" data-col="1"&gt;
&lt;div data-row="3" data-col="2"&gt;
&lt;div data-row="3" data-col="3"&gt;
</code></pre>

<p>I am trying to loop through each row and get the maximum height of each div in that row (although I am not doing exactly that with this  code).  With this code, I just want to be able to loop through how ever many rows there are.</p>

<p>This works and will produce three alerts of "1":</p>

<pre><code>// ACCESS THE HEIGHT OF EACH CELL
$("[data-row='1']").each(function() {
    var R = $(this).attr("data-row");
    alert(R);
});
</code></pre>

<p>What I expect to see when this runs is three alerts of "1", followed by three alerts of "2", followed by three alerts of "3". I do not get any errors when the code "runs". No alerts are thrown.  This does NOT work:</p>

<pre><code>$("[data-row&gt;='1']").each(function() {
    var R = $(this).attr("data-row");
    alert(R);
});
</code></pre>

<p>What's wrong with this piece of code?  Why is it not finding any rows that have data-row value of 1 or greater?</p>
