hidden field value using javascript/ jquery
<p>I have a page where I am loading a another page and a js file. The child page has a hidden field</p>

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

<p>This child page has a an event which is setting value of this variable:</p>

<pre><code>function onEndClientCallBack(sender, eventArgs) {              
            $('#eventOk').val('5')
            alert('1 value is' + $('#eventOk').val());        
        }
</code></pre>

<p>The alert is showing that value is set properly. Now I want to use this value inside the js file which is loaded in the frame but when I alert the value it shows blank value. how can I set the value in aspx page and use in js file ?</p>

<p>Please suggest. Thanks.</p>
