How do I block the mouse whelo scrolling on a div
using JavaScript or jQuery?
How do I block the mouse whelo scrolling on a div
using JavaScript or jQuery?
You can do this as follows with Javascript:
document.getElementById('meuID').onwheel = function(){ return false; }
body {height:1000px;}
#meuID {
width:150px;
height:200px;
border:1px solid #000;
overflow-y: scroll;
}
<div id="meuID">
<div style="height:1200px;"></div>
</div>