get the value of hidden parameter present in a div using jquery
<p>I have a div whose id is "mainDiv" and a hidden field is in this div whose class name is "myHiddenField". Now I want to get the value of that hidden parameter using jquery.</p>

<p>I have tried:</p>

<pre><code>$("#mainDiv .myHiddenField").val()
</code></pre>

<p>and </p>

<pre><code>$("#mainDiv .myHiddenField").attr('value')
</code></pre>
