What is the best way to make an element unselectable using jQuery?
I know that you can use onselectstart="return false;" ondragstart="return false;" onselectstart="return false;" ondragstart="return false;" in HTML, but I'm not sure how compatible this is with the browser.
I also see that someone created the jQuery plugin: http://plugins.jquery.com/project/Unselectable .. do I need such a plugin?
Is there a simple, compatible way to make an element non-selectable?
The reason for wanting to do this is purely aesthetic. With web pages that drag and drop events, it is not very nice when things are selected.
Acorn source share