I have a simple div with basic content...
<div id="slide"> ... </div>
The following code works in FireFox but not in Chrome. I tried accessing the .css ("width") and other properties as well with the same result.
$(window).resize(function() {
if( $(this).width() < 900) {
alert( $("#slide").html() );
}
});
Any idea why this isn't working in Chrome? One interesting thing is this does work in both...
$(window).resize(function() {
if( $(this).width() < 900) {
$("#slide").hide();
}
});
My end goal is to access/change a child element in the div, but that wasn't working, so I tried to the access to the div itself for a sanity check...and no luck in Chrome.