Here is the code I am using to detect the browser resize event:
window.onresize = function(){
var style = $('#button-selection').css('position');
if(style == "relative"){
$("#button-section").css("position"," ");
}else if(style == "fixed"){
$("#button-section").css("position","relative");
}
};
When I run this code, the style returns undefined. I have tried running it when the document is ready as well as using window ready, but the result is the same. Both methods still return undefined!