title: revise href attribute
body: <p>So I have a link like this:</p>
  
  <pre><code>&lt;a href="http://thissite.org/thisfolder/21/thispage.php"&gt;
  </code></pre>
  
  <p>What I want to do is revise it but keep part of it eg: </p>
  
  <pre><code>&lt;a href="http://thissite.org/thatfolder/21/thatpage.php"&gt;
  </code></pre>
  
  <p>Can this be done with Jquery or js?</p>
  
  <p>I know I can replace href property with jquery but I need to leave part of the url ("21") and just change the text before and after it.</p>
  
  <p>I was thinking maybe grab the href property, stick it in a variable and take it apart and put it back together somehow.</p>
  
  <p>Any help with this would be largely appreciated.</p>