I am trying to add a class to the body depending on the url querystring (or hash if thats easier)
If you go to http://www.here.com?myclass I want to page to change the class of the body to: <body class="myclass">
This is the closest I got using a hash:
$(document).ready(function() {
var url=document.URL.split('#')[1];
if(url == undefined){
url = '';
}
if(url != ''){
$(document.body).addClass('myclass');
}
});