http://www.blograndom.com/blog/2009/07/ ... -elements/
這篇則是實作成為 jQuery function: http://stackoverflow.com/questions/2700 ... ing-jquery
代碼: 選擇全部
$.fn.disableSelection = function() {
$(this).attr('unselectable', 'on')
.css('-moz-user-select', 'none')
.each(function() {
this.onselectstart = function() { return false; };
});
};