.prevUntil not working as expected
<p>what am I doing wrong in this code..</p>

<p>I should get the class name of the previous sibling using this code.. but I am getting undefined..where am I going wrong</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;

&lt;meta charset=utf-8 /&gt;
&lt;title&gt;JprevUntil&lt;/title&gt;


&lt;script  type="text/javascript" src="jquery-1.7.1.min.js"&gt;&lt;/script&gt;
&lt;script&gt;
$('.clickme').live('click',function(){
    alert($(this).prevUntil('li.lick').className);
});
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

  &lt;div&gt;
      &lt;p id="hello"&gt;Hello World&lt;/p&gt;
      &lt;li class="lick"&gt;hello i am li&lt;/li&gt;
      &lt;a href="#"&gt;heello i am a&lt;/a&gt;
      &lt;p class="clickme"&gt;click&lt;/p&gt;
  &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
