how can i extract text after hash # in the href part from a tag?
<p>I have following a tags:</p>

<pre><code>&lt;a href="#tab1"&gt;Any tab1 Label&lt;/a&gt;
&lt;a href="#tab2"&gt;tab2 Label&lt;/a&gt;
&lt;a href="#tab3"&gt;Any tab3 Label&lt;/a&gt;
&lt;script&gt;
function tellMyName()
{
    alert(this.href);
}

&lt;/script&gt;
</code></pre>

<p>Now i want to bind the tellMyName function to all the a tags and get <strong>tab1</strong> if <strong>Any tab1 Label</strong> is clicked, <strong>tab2</strong> if <strong>tab2 Label</strong> is clicked and so on...</p>
