I don't understand a lot the pourpose of this selector > $(document.location.hash).removeClass("hidden"); >
If the element has the id attr as the same hash you should use > $("#"+document.location.hash).removeClass("hidden"); Or if the hash is in the href attr you can use > $('[href="'+document.location.hash+'"]').removeClass("hidden"); In this case i don't know if you have to use the # becasue i think that it is included in the href tag, maybe it can be > $('[href="#'+document.location.hash+'"]').removeClass("hidden"); Another thing you can do if nothing of this works is to use the command console.log(document.location.hash); To check if its really taking the hash value in IE