/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.fn.disableSelection = function() { $(this).attr('unselectable', 'on') .css('-moz-user-select', 'none') .each(function() { this.onselectstart = function() { return false; }; }); };