How can i find out the size of a cell with javascript
<p>I have a popup that pops up right underneathe a <code>&lt;th&gt;</code> so it looks like the <code>&lt;td&gt;</code> (don't ask why). on 1024 *760 its the same width as the table header cell, but on 1280 it's not as wide. How can i wirte a script to find out the width of my <code>&lt;th&gt;</code>? (I'm using jQuery.)</p>

<p>edit:</p>

<pre><code>&lt;th id="telephoneTH" width="25%" &gt;
&lt;span  id="telephoneSpan" class="headerShortDetails"&gt;Telephone&lt;/span&gt;&lt;span onclick="showContactPopup();"  class="infoSpans"&gt; ${bean.phoneNumber}&lt;/span&gt;
&lt;/th&gt;


var width2 = $('#telephoneTH').outerWidth();
alert(width2);
</code></pre>

<p>error: 'null' is null or not an object</p>
