Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable image selection using jQuery?

when we drag over an image, the image become selected. how can i disable this selection using jquery or javascript? I am trying to create a custom image crop script. i tried e.preventDefault() but it is not working in IE6, please help

Thank you

like image 639
john Avatar asked Feb 26 '23 13:02

john


1 Answers

There are also some css properties like -webkit-user-select: none; and -moz-user-select:none

like image 75
antimatter15 Avatar answered Mar 07 '23 16:03

antimatter15