get hash from url

This isn't technically jquery but it is javascript. Get the has from the url.

var hash= window.location.hash;
var this_hash= hash.substring(1);