I want to know if this is possible to do via jquery since I CAN'T add it in the markup:
I want to add download.php?file=
to a url like this (links will change so I can't just replace the whole href
):
<a class="boton" target="_blank" href="http://www.test.com/wp-content/uploads/2014/11/PRUEBA-ES.pdf">DOWNLOAD</a>
So I could get the link like this:
<a class="boton" target="_blank" href="http://www.test.com/wp-content/uploads/2014/11/download.php?file=PRUEBA-ES.pdf">DOWNLOAD</a>
Any ideas?