Get hidden input value with JavaScript
<pre><code>function GetWidth(){
    var TBL_width = document.getElementById('wrap_tbl').offsetWidth;
    return TBL_width;
}
var w = GetWidth();

&lt;input type="hidden" id="tbl" value= w /&gt;
</code></pre>

<p>Is this possible?</p>

<p>I want to store a JavaScript variable in value attribute of a hidden input element. Please guide me how to do this </p>
