title: loop and grab href links info
body: <pre><code> &lt;p class="page" id="datapage"&gt;
   &lt;strong&gt;1&lt;/strong&gt; 
   &lt;a class="pag-curr" href="blahblah;page_num=2"&gt;
   2
   &lt;/a&gt; 
   &lt;a class="pag-curr" href="blahblah;page_num=3"&gt;
   3
   &lt;/a&gt; 
   ...
   till page number 10
   &lt;a class="pag-next" href="blahblah;page_num=2"&gt;
   &lt;strong&gt;next&amp;nbsp;»&lt;/strong&gt;
   &lt;/a&gt;
   &lt;/p&gt;
  </code></pre>
  
  <p>I want to loop the href class="pag-curr" to get the number of counts and want to get their relative href info (eg.blahblah;page_num=2.. etc), how can I achieve it with javascript or jquery?</p>