jQuery find link that matches current page
<p>I have the following code that is trying to find a link that matches the current url: <code>$item = $('ul#ui-ajax-tabs li a').attr('href', $(location).attr('pathname'));</code> but instead it changes all the links to the current url :P</p>

<p>Can anyone help me fix it. Cheers</p>
