revise href attribute
So I have a link like this: 
<a href="http://thissite.org/thisfolder/21/thispage.php">

What I want to do is revise it but keep part of it eg: 
<a href="http://thissite.org/thatfolder/21/thatpage.php">

Can this be done with Jquery or js?

I know I can replace href property with jquery put I need to leave part of the url and just change the text before and after it.

I was thinking maybe grab the href property, stick it in a variable and take it apart and put it back together somehow.

Any help with this would be largely appreciated.
revise href attribute
===

So I have a link like this: 
<a href="http://thissite.org/thisfolder/21/thispage.php">

What I want to do is revise it but keep part of it eg: 
<a href="http://thissite.org/thatfolder/21/thatpage.php">

Can this be done with Jquery or js?

I know I can replace href property with jquery put I need to leave part of the url and just change the text before and after it.

I was thinking maybe grab the href property, stick it in a variable and take it apart and put it back together somehow.

Any help with this would be largely appreciated.