For some reason I can't seem to alert the value of a variable, my variable is global and defined at the top of the page...
var slickTog = 'dsadsdasd';
I then have a window resize function that I have the alert in only it doesn't work!
function windowSize(){
alert(slickTog);
...
}
windowSize();
$(window).on('resize',function(){
windowSize();
});
Does anybody have an idea of why this isnt working? I've attached a jsFiddle too...