title: Subtracting an integer from a value which is fetched using $(#id).val()
body: <p>In order to subtract an integer from a value which is fetched using <code>$(#id).val()</code> I have tried:</p>
  
  <pre><code>$("#hid_count").val() = $("#hid_count").val() - 1;
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>count = $("#hid_count").val();
  </code></pre>
  
  <p>Here <code>hid_count</code> is a hidden field on the page. However, both of these are not working. An error is coming on the page. Can anybody explain why this is?</p>