The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Adding #Name to the Address filed
Hi!
Im using Jquery to load text into a Div with the code below:
$('ul.menu a').click(function(){ $('.cc').load($(this).attr('href')); return false; });
html code
Click me for a party
And I’d like to ad the name of the link that was klicked to the address filed in the browser so it lookes like
before clicked http://www.stuff.com/party.php
after http://www.stuff.com/party.php#yay-cool
Any suggestions on how to do this?