0
I wonder if there is a function in jQuery that can concatenate to the page hrefs a string.
My page behaves in a different way if my url contains #es
or #pr
, so I wanted to keep this comment at the end of each link.
Example:
<a href="/pagina/">Página</a>
would become, if the comment #pr
is at the url
<a href="/pagina/#pr">Página</a>
But I wanted to do it with all the links on the page.
A function that captures all href
'and that I can put them in their proper places.