title: get action of submitted form
body: <p>I have the following code which is triggered every time a user submits a form on my site.  </p>
  
  <p>I want to modify it slightly, so that it checks the action of the submission, and based on the presence of a particular keyword, runs some code.</p>
  
  <p>My code is as follows:</p>
  
  <pre><code>$("form").submit(function() {
      //do some generic stuff
      var formAction = ""; //get the action of the submitted form
  
      if (formAction.indexOf('keyword') !== -1) {
          //do some specific stuff for these forms
      }
  });         
  </code></pre>
  
  <p>How do I get the <code>action</code> of the <code>form</code> which triggered this call?</p>