i know can disable text selection div not want.
i have jquery color picker , can see on webpage in flat example, if pick color keep mouse pressed , move on page nothing get's selected. want somehow not work in example:
$('#colorselector').colorpicker({ color: '#ff0000', flat: true, ... });
even if disable text selection on color picker still able select text around moving clicked mouse.
i disable text select on whole page not nice.
how fix this?
do want this: http://jsfiddle.net/praveen16oct90/x6sat/5/
document.getelementbyid("text_selectable").onmousedown = function(event) { event.preventdefault(); return false; }
give id html 'text_selectable' , use it. <html id="text_selectable">
Comments
Post a Comment