Block Mouse Scroll inside DIV
问题 How to block mouse scroll in a div with id="slider-'.$question_id.'" So basically if you put mouse over that div, click it you will not be able to scroll using mouse scroll. <div id="slider-'.$question_id.'"> CONTENT </div> I am only looking for solution with JavaScript I have code below, but this is blocking whole page: <script type='text/javascript'> document.onmousewheel = function(){ stopWheel(); } /* IE7, IE8 */ if(document.addEventListener){ /* Chrome, Safari, Firefox */ document