Is there any way to take only part of string in jquery?
<p>I have some anchor links which has id's starts with <code>"menu-"</code>.  </p>

<pre><code>&lt;a href="" id="menu-alphabetic"&gt;
&lt;a href="" id="menu-city"&gt;
&lt;a href="" id="menu-country"&gt;
</code></pre>

<p>In my jquery code, I want to take only anchor links' ids after <code>menu-</code></p>

<pre><code>For example:
$("a[id^=menu-]").click(function(){
   e.preventDefault();
   $(this).tab('show');
});  
</code></pre>

<p>But <code>$(this)</code> takes all id. I want only word which comes after <code>menu-</code>.</p>
