1

When i double clicking some element in my web browser it mark it with blue marking. Is there possibility in jQuery to avoid this behavior?

krzyhub
  • 6,285
  • 11
  • 42
  • 68

2 Answers2

1

You can try this

$("anySelector").bind("selectstart", function(){
  return false;
});
ShankarSangoli
  • 69,612
  • 13
  • 93
  • 124
0

If you mean a blue outline, it is possible to remove that by explicitly stating

outline: 0

In the CSS.

This can form part of a CSS reset, which is to start your CSS with

* {
   outline: 0;
   .
   .
   .
}
Julian
  • 2,021
  • 16
  • 21
  • hmm.. i styled my element by `style="outline: 0"` but it didn't help. For more i have: `Activatee` Is it good? – krzyhub Jul 23 '11 at 21:41