I want to completely disable scrolling on the page with jquery (NOT body overflow:hidden).
I thought this would work but for some reason it doesn't.
$( window ).on( "scroll", function(e) {
e.preventDefault();
});
I want to completely disable scrolling on the page with jquery (NOT body overflow:hidden).
I thought this would work but for some reason it doesn't.
$( window ).on( "scroll", function(e) {
e.preventDefault();
});