Answers for "jquery disable body scroll"

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 "Javascript"

Browse Popular Code Answers by Language