Is it possible to have multiple events in jQuery, like this?
$(window).resize(function () {
$('#page-wrapper').css('height', (window.innerHeight - 51) + 'px');
});
Now it's just resize() but is it possible to make it so that it is on both resize and ready?
$(window).resize.ready(function () {
$('#page-wrapper').css('height', (window.innerHeight - 51) + 'px');
});
readyevent is on thedocumentobject and theresizeevent is on thewindowobject.