How to assign null value to Hidden variable in javascript?
<p>I have a hidden input variable called str.</p>

<p>I am assigning "abc" value to it.</p>

<p>Then I try to assign null value or let's say null reference to it. But I couldn't.</p>

<p><strong>Edit</strong></p>

<p>part of code.</p>

<p>Hidden Field...</p>

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

<p>I also use jQuery.</p>

<pre><code>if ($(str).val() == "abc") {
     $("#str").val(null);
             }
</code></pre>
