catching id passe in url using jquery
<p>I have an html block like this:</p>

<pre><code>&lt;div class="main"&gt;
    &lt;div class="content"&gt;
    &lt;h3&gt;&lt;a href="/dir/dir/dir/?id=33" title="name"&gt;name&lt;/a&gt;&lt;/h3&gt;
    &lt;a href="/dir/dir/dir/?id=33" title=""&gt;&lt;img src="/default.png" alt="name" /&gt;&lt;/a&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I need to catch the <code>id</code> value (here 33) from the first <code>&lt;a href&gt;</code> tag.</p>

<p>My code is:</p>

<pre><code>function getID(s){
    var s = $(this);
    var a = s.('a:first').attr('href').split('=');
    console.log a[1];
}
</code></pre>

<p>However console.log is returning me:</p>

<blockquote>
  <p>Uncaught SyntaxError: Unexpected token (</p>
</blockquote>

<p>any idea?</p>
