john
john

Reputation: 535

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

Upvotes: 4

Views: 4484

Answers (2)

antimatter15
antimatter15

Reputation: 1456

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

Upvotes: 7

Iznogood
Iznogood

Reputation: 12843

You could always just use a existing tool for that or look at the code to understand what it is you are missing.

Upvotes: 1

Related Questions