I know how to use multiple CSS selectors with jQuery, but how can I bind an event listener to multiple selectors when one of them is an object, like documentor window.
The following does not work:
$('html, body', document).scroll(function () {
if(Screen.detectScroll() === 'down') {
self.hide();
} else {
self.show();
}
});
source
share