title: How to store value in HTML input through jQuery
body: <p>In my HTML I have:</p>
  
  <pre><code>&lt;div&gt;
      &lt;input type="hidden" id="field" value="-1"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In my jQuery I have:</p>
  
  <pre><code>var fieldInput = $("#field");
  
  if(someBoolIsTrue)
      fieldInput.value = 4;
  </code></pre>
  
  <p>After this JS executes, I go to print the value of the hidden <code>field</code>, and it tells me it's still <code>-1</code>.  Am I using jQuery incorrectly here?!? Thanks in advance!</p>