Suppose I have a table in a web page:
<table><th id='th1'></th></table>
Then I define the CSS in the header:
#th1
{width: 100%;}
The question is, how to get the CSS width using JavaScript? I tried width, style.width, and jQuery("#th1").css("width"), but neither of them give me the result of '100%'.