Simple question… maybe? Basically what I want to do is insert text to the end of a URL loaded on the page. So on my page I would have something like…
<a href="myurl.html">My Url</a>
And what I want is for text to be appended after the file extension on a click event. So after the click it should look like..
<a href="myurl.html#something">My Url</a>
$('a').click(function(){
//add text to url
});
You can change the
hrefattribute using.prop()or.attr().or