title: How to extract query parameter in href attribute?
body: <p><code>&lt;a class="test" href="www.abc.com?test1=1|6&amp;test2=2"&gt;img&lt;/a&gt;
  &lt;a class="test" href="www.abc.com?test2=1&amp;test3=2"&gt;img&lt;/a&gt;
  &lt;a class="test" href="www.abc.com?test3=1&amp;test4=2"&gt;img&lt;/a&gt;</code></p>
  
  <p>I have a set of anchor elements with same class name,  I need to extract a particular parameter, like test1 or test4, this value can be dynamic and <b>update the href param with a new value</b></p>
  
  <p>how do i do it in jquery?</p>
  
  <p>any ideas?</p>