title: Traversing from Bookmark Hashtags (#bookmark) in jQuery?
body: <p>I am having trouble traversing from a bookmark has tag in jquery. Specifically, the following HTML:</p>
  
  <pre><code>&lt;a id="comment-1"&gt;&lt;/a&gt; 
  &lt;div class="comment"&gt; 
  &lt;h2 class="title"&gt;&lt;a href="#comment-1"&gt;1st Post&lt;/a&gt;&lt;/h2&gt; 
    &lt;div class="content"&gt;
      &lt;p&gt;this is 1st reply to the original post&lt;/p&gt; 
    &lt;/div&gt; 
    &lt;div class="test"&gt;1st post second line&lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>I am trying to traverse to where the class = "title", if the page is landed on with a bookmark hashtag in the URL (site.com/test.html#comment-1). The following is my code I'm using for testing:</p>
  
  <pre><code>if(window.location.hash) {
  alert ($(window.location.hash).nextAll().html());
  }
  </code></pre>
  
  <p>It executes fine, and returns the appropriate html (<code>&lt;h2 class="title"&gt;&lt;a href="#co...</code>) </p>
  
  <p>The problem is if I add a selector to it (<code>$(window.location.hash).next('.title').html()</code> ) I get a null result. Why is this so? Is nextAll not the correct Traversing function? (I've also tried next+find to no avail)</p>
  
  <p>Thanks!</p>