title: jquery bind submit event - find caller
body: <p>How would I be able to find out the caller/sender of an event on binding.</p>
  
  <pre><code>$(this).bind("submit", function(caller) { ... });
  </code></pre>
  
  <p>I found out that I could use "caller.originalEvent.explicitOriginalTarget", but this only works in firefox.</p>
  
  <p>EDIT:</p>
  
  <p>I'm using the jquery validation library from position-relative.net I want to make it so that if a button has a class called "bypass" on the sender, that makes the validation engine just return true so the form can be submitted. I.e. I'm using ASP.NET, and all button presses are postbacks (form submits). I'm just looking to make a back button.</p>
  
  <p>I've added this code</p>
  
  <pre><code>if ((caller.originalEvent.explicitOriginalTarget != null) &amp;&amp; (caller.originalEvent.explicitOriginalTarget.className == "bypass")) {
              return true; 
          }
  </code></pre>
  
  <p>on line 71, just under this line</p>
  
  <pre><code>$(this).bind("submit", function(caller) {   // ON FORM SUBMIT, CONTROL AJAX FUNCTION IF SPECIFIED ON DOCUMENT READY
  </code></pre>
  
  <p>Thoughts and suggestions appreciated.</p>
  
  <p>Thanks</p>