How do i Pass the Value To hidden using attr in jquery
<pre><code>&lt;input type="hidden" value="" id="myhidden"&gt;
</code></pre>

<p>Iam getting the Value of Button Value  using data-value attribute from button </p>

<pre><code>var myvalue = $(this).attr("data-value");
</code></pre>

<p>I have to pass the "myvalue"  to the hidden value </p>

<pre><code>$("#myhidden").attr("value","??????????????");
</code></pre>

<p>when i have passed "myvalue" It is not acccepting </p>
