title: Change form's action attribute
body: <p>Okay, I must be missing something here because this should be extremely simple, yet it doesn't work...</p>
  
  <p>I have a <code>form</code> on my page with an empty <code>action</code> attribute (<code>action="#"</code>). When the page is ready, I want to change the <code>action</code> attribute to something else. My code is very simple:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form action="#" method="post" id="register"&gt;&lt;/form&gt;​
  </code></pre>
  
  <p>jQuery:</p>
  
  <pre><code>$("#register").attr("action", "http://www.test.com");​
  </code></pre>
  
  <p>Even in a <a href="http://jsfiddle.net/wvYjs/" rel="noreferrer">test fiddle</a>, it doesn't work! View the source of the Result frame and you'll see the value of the <code>action</code> attribute is still <code>#</code>.</p>
  
  <p>Where am I going wrong??</p>