108 posts
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 10 000 and 50 000 dollars
  • Referred between 1 and 9 users
  • Bought between 10 and 49 items
Sandi says

Ho to disable text/hrefs selection highlighting (cross-browser)? I use jQuery code below, it works but not always

$someObject.attr('unselectable', 'on') .css({'-moz-user-select':'none', '-o-user-select':'none', '-khtml-user-select':'none', '-webkit-user-select':'none', '-ms-user-select':'none', 'user-select':'none'}) .each(function() { $(this).attr('unselectable','on') .bind('selectstart',function(){ return false; }); });
by
by
by
by
by
by