jQuery - Syntax Error
<p>I am using the following to identify the current selected (active) link in a site:</p>

<pre><code> $(function(){
 var path = location.pathname.substring(1);
 if ( path )
 $('#sidebar_content a[@href$="' + path + '"]').attr('class', 'selected');
 });
</code></pre>

<p>It appears to identify the path properly but also generates an error</p>

<blockquote>
  <p>Error: uncaught exception: Syntax error, unrecognized expression: [@href$="clinics/ohs_north_carolina"]</p>
</blockquote>

<p>The page source does not show that the link has the class added.</p>

<p>Would appreciate some help.</p>

<p>Thanks.</p>
