I have been trying to use the answer at How to change the href for a hyperlink using jQuery to modify a WordPress permalink, however I am not having much luck and need assistance.
I am trying to modify the WordPress Permalink on one Hyperlink, across all pages on the site.
<a id="language" href="<?php the_permalink() ?>">German</a>
Lets say the permalink is http://www.wordpress-site.com/about-us/
I want to modify it, using jQuery to read http://www.wordpress-site.com/ger/about-us/
What would my jQuery code need to be in order to accomplish this? It needs to work dynamically, across all pages on the site, identifying http://www.wordpress-site.com/whatever/
in the a#language
on all pages, and replacing it with http://www.wordpress-site.com/ger/whatever