Identify caller
<p>I have a link in some html which calls a javascript function I'm writing. The call must be inline so the code is as follows:</p>

<pre><code> &lt;a href='#' onclick='quipManager.getQuip(1, $(this))'&gt;Test&lt;/a&gt;
</code></pre>

<p>In the getQuip function I use the this reference to modify the div which wraps the link by means of .parents()
e.g.</p>

<pre><code>  getQuip: function (id, currentQuip) {
      alert(currentQuip.parents('.qtip').html());
  }
</code></pre>

<p>I need to keep the call inline, but what I'd like to know is if I can use it like this:</p>

<pre><code> &lt;a href='#' onclick='quipManager.getQuip(1)'&gt;Test&lt;/a&gt;
</code></pre>

<p>and still have getQuip know which link called it so the following still works.</p>

<pre><code> getQuip: function (id) {
      var currentQuip = id.caller ???
      alert(currentQuip.parents('.qtip').html());
  }
</code></pre>
