Get highest number from table cell content
<p>I'm trying to get the highest number (8 in example below) from the table cells with specific class.  I'm assuming I'll have to convert it to an array and then do math.max on it?</p>

<p>This is my HTML code:</p>

<pre><code>&lt;table&gt;
    &lt;tr&gt;
        &lt;td class="id"&gt;3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="id"&gt;8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td class="id"&gt;4&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>This is really what I've tried, but it just returns 384.  So math.max doesn't work on it.</p>

<pre><code>var varID = $('.id').text();
var varArray= jQuery.makeArray(varID);
alert (varArray);
</code></pre>
