jQuery: Retrieving the next links hash value in list
<p>I'm trying to retrieve the hash value of the next link</p>

<p>HTML</p>

<pre><code>&lt;ul id="links"&gt;
    &lt;li&gt;&lt;a href="index.php?#1"&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="index.php?#2"&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="index.php?#3"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>JS</p>

<pre><code>$('#links li a').click(function() {

    var current_link = $(this).attr("href").substring(1);
    var next_link = $(this).next().attr("href").substring(1);

});
</code></pre>

<p>The current_link works, but I can't seem to retrieve the value of the link below. I think i'm missing an index() somewhere but i'm not exactly sure.</p>

<p>Thank you!</p>
