title: jquery click() in submit button
body: <p>I have a .click() function on a submit button in a form:</p>
  
  <pre><code>$("#submitId").click(function () {
      $('#hiddenInput').val(someVariable);
  });
  </code></pre>
  
  <p>It works like a charm. When the submit button is clicked the click() function fills the hidden input variable and then the whole form gets submitted. The server then receives the hidden input with the refreshed content.</p>
  
  <p>My question is: will it always work? Is there any danger that, by some reason not yet known to me, the submit operation gets executed first and the click() function later? I want to make sure the hidden input always gets refreshed.</p>