Hello,
I have the following code:-
$('ul.questions li a').click(function(event) {
$('.tab').hide();
$($(this).attr('href')).fadeIn('slow');
event.preventDefault();
window.location.hash = $(this).attr('href');
});
This simply fades a div in based on when you click but i want the page url hash tag to change when you click so people can copy and bookmark it. At the moment this effectively reloads the page when the hash tag is change.
Is it possible to change the hash tag and not reload the page to prevent the jumping effect?
Thanks
Dave.