Assigning table column width w/jQuery
<p>I have a table. The first column contains labels. The rest of the columns contain values. I do not know how many columns can there be but I would like to make all but the first column the same width.</p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
    &lt;th&gt;&lt;/th&gt;
    &lt;th&gt;&lt;/th&gt;
    &lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;label&lt;/td&gt;
    &lt;td&gt;data&lt;/td&gt;
    &lt;td&gt;data&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>So, I know the table width </p>

<pre><code>var tW = $("#myTbl").width();
</code></pre>

<p>I can get the width of the first column:</p>

<pre><code>var fcW = $("#myTbl th:first").width();
</code></pre>

<p>Now i need to find how many columns are there in the table, subtract the width of the first column from the table width and divide the rest by the (number of cols - 1).</p>

<p>How do I find the number of columns?</p>

<p>Tried but failed</p>

<pre><code>var nimCol = $("#myTbl th:first").parent().find("th").length - 1;
</code></pre>
