How do I get the value of an input field with jQuery
<p>I am trying to set the inner html value of a field and that works fine but when I try to retrieve it it fails.</p>

<p>My code:</p>

<pre><code>            var butId = buttonPressed.getAttribute('id');

            $('#will'+butId).remove();
            $('#hidDelete').html(butId);     //THIS WORKS FINE
            var temp = $('#hidDelete').html();   //THIS DOESNT
            alert (temp);      //THIS PRINTS NOTHING
</code></pre>

<p>My input field:</p>

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

<p>Can anyone see whats wrong with it?</p>
