code: function disableTextSelection() {
      // jQuery doesn't support the element.text attribute in MSIE 8
      // http://stackoverflow.com/questions/2692770/style-style-textcss-appendtohead-does-not-work-in-ie
      var $style = $('<style id="__dragtable_disable_text_selection__" type="text/css">body { -ms-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none; }</style>');
      $(document.head).append($style);
      $(document.body).attr('onselectstart', 'return false;').attr('unselectable', 'on');
      if (window.getSelection) {
        window.getSelection().removeAllRanges();
      } else {
        document.selection.empty(); // MSIE http://msdn.microsoft.com/en-us/library/ms535869%28v=VS.85%29.aspx
      }
    }
docs: css properties to disable user-select on the body tag by appending a <style> tag to the <head> remove any current document selections