title: jQuery and IE8: Form action and submit problem
body: <p>I have some code that isn't doing what I want it to in IE8. When you hit the "preview" submit button, a bit of Javascript jumps in and changes the form's action to franchisepreview.php. This sets a session variable so when you go back to the form you won't loose anything. Hitting "Update" or "Insert" goes straight to a query that inserts a franchise.</p>
  
  <p>In IE8 the Javascript isn't jumping in. It submits the form without ever changing the action.</p>
  
  <p>The bit of jQuery I'm using:</p>
  
  <p>The bind:</p>
  
  <pre><code>jQuery("#preview").bind("click", changeForm);
  </code></pre>
  
  <p>The function <code>changeForm</code>:</p>
  
  <pre><code>function changeForm(event)
  {
      alert("Before: "+ jQuery("#franchiseform").attr("action"));
      jQuery("#franchiseform").attr("action", "franchisepreview.php");
      alert("After: "+ jQuery("#franchiseform").attr("action"));
      jQuery("#franchiseform").submit();
  }  
  </code></pre>