jquery closest() doesn't work
<p>I am trying to grab the closest link with the class <code>a.tariff-link</code> and send it to a method, but looks like <code>closest()</code> cannot find it because it's always passing an undefined element.</p>

<pre><code>$(".ui-icon-triangle-1-e").click(function () {

    GetRuleData($(this).closest("a.tariff-link"));

});
</code></pre>

<p>An example of HTML would be like this:</p>

<pre><code>&lt;h3 class="ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" role="tab" aria-expanded="false" tabindex="-1"&gt;
&lt;span class="ui-icon ui-icon-triangle-1-e"&gt;&lt;/span&gt;
&lt;a id="41965" class="tariff-link" href="#" tabindex="-1"&gt;
&lt;/h3&gt;
</code></pre>
