Disable dragging an image from an HTML page
You can like this...
document.getElementById('my-image').ondragstart = function() { return false; };
See it working (or not working, rather)
It seems you are using jQuery.
$('img').on('dragstart', function(event) { event.preventDefault(); });
CSS only solution: use pointer-events: none
just add draggable="false" to your image tag:
<img draggable="false" src="image.png">
IE8 and under doesn't support however.