I have this code :
<a class="myLink" href='http://www.website.it/'>Link</a>
<script type="text/javascript">
var stringToSend = "";
$('.myLink').click(function() {
stringToSend="?param=1";
});
</script>
and, as you can see, I’d like to add stringToSend to the href (so the request will be at http://www.website.it/?param=1).
How can I do it?
Just modify the
hrefwith newhrefand you are done.