title: Selecting links with jquery
body: <p>Please help, I need to select the "10" on this link using jquery where it says <code>id=10</code> and also the "do" where it says <code>type=do</code></p>
  
  <pre><code>&lt;a class="myClass" href="/local/web/do.php?type=d0&amp;id=10"&gt;link&lt;/a&gt;
  </code></pre>
  
  <p>I tried jQuery<code>(this).attr('href');</code> but that returns all the link address,
  I need to set each as a variable.</p>
  
  <p>I want something like 
  var id = "the selector that selects only the id value"
  var type = "the selector that selects only the type value"</p>
  
  <p>Thanks</p>