title: How do i change form's action property when button is clicked
body: <p>I would like to change the form's action property when a button is clicked</p>
  
  <p>I have two buttons in a form and when each button is clicked each should post data to own url.</p>
  
  <p>html:</p>
  
  <pre><code>&lt;form method="post"&gt;
  &lt;input type="button" value="Edit Selected..." /&gt;
  &lt;input type="button" value="Delete Selected..." /&gt;
  ...
  &lt;/form&gt;
  </code></pre>