It\'s probably a silly question but is there a way to get the css id selected from the url? For example in a url like this:
www.website.com#adiv
That would be window.location.hash
var hash = window.location.hash; $(hash).addClass(...);
Or directly
$(window.location.hash).addClass(...);