Answers for "disable scrolling with jquery"

0

disable scroll jquery

//This will completely disable scrolling:
$('html, body').css({
    overflow: 'hidden',
    height: '100%'
});

//To restore:
$('html, body').css({
    overflow: 'auto',
    height: 'auto'
});
Posted by: Guest on July-01-2021

Code answers related to "disable scrolling with jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language