title: How do I get the name of the form from the onSubmit event?
body: <p>My form looks like this:</p>
  
  <pre><code>    &lt;form name="test" action="" method="post" onSubmit="submitCRMSearch(event);return false;"&gt;
      &lt;table class='borderless'&gt;
          &lt;tr&gt;&lt;td&gt;TERM:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="term" value=""&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;START:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="start" value=""&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;LIMIT:&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="limit" value=""&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='right'&gt;&lt;input type="submit" name="submit" value="Submit"&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;/table&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>...and my JavaScript function looks like this:</p>
  
  <pre><code>function submitCRMSearch(e){
      var target = e.target
      var string = "\n";
      $.each(target,function(k,v){
          string += v.name + " = " + v.value + "&lt;br&gt;\n";
      })
      string += 
      string += "\n";
      $("#output").html(string);
  }
  </code></pre>
  
  <p>I can easily get the names of the input elements and their values form the target property of the event. But how do I get the name of the form object that sent the event to begin with?</p>