I have the following code:
$(\'ul.questions li a\').click(function(event) { $(\'.tab\').hide(); $($(this).attr(\'href\')).fadeIn(\'slow\'); event
You can set your hash directly to URL too.
window.location.hash = "YourHash";
The result : http://url#YourHash