title: replace action attribute value in form
body: <p>I am trying to change/replaced the action attribute in a form but am having a problem with the selector. I want to change the action to ShoppingCart.asp?recal=Y</p>
  
  <p>Here is the markup for the form.</p>
  
  <pre><code>&lt;form onsubmit="if (typeof(Update_Hidden_State_Fields)=='function') Update_Hidden_State_Fields(); if (this.submitted) return false; else {this.submitted=true; return true;}" action="ShoppingCart.asp" name="form" method="POST"&gt;
  </code></pre>
  
  <p>Here is the Jquery I have so far.</p>
  
  <pre><code>$("[name='form']")
  .attr('action', function(jj,ww){
       return ww.replace('ShoppingCart.asp','ShoppingCart.asp?recal=Y');})
  </code></pre>