I am trying to amend a link using jQuery. The links are dynamically generated and I have no control over the existing HREF as they are called from a 3rd party site.
Using jQuery, how can I change a link from this:
example.com/?one=1&two=1
to this:
example.com/?one=1&two=1&thisisadded=true
so essentially adding &thisisadded=true
to the end of the link?
The links which need changing are within their own div with a class of my-link
.
Many thanks for any help!
James