I have a draggable (jQuery UI) element with \"canceled\" text on it. Here\'s what I mean:
$(\'#main\').draggable({ cancel: \'#main>* *\', star
Clear document selection document.selection.empty();
document.selection.empty();
Something like:
$('#main').draggable({ cancel: '#main>* *', start: function(){ // deselect text document.selection.empty(); } });