How do I make it so that when I double click on a div, it doesn't select the word?

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-05-16T23:04:58Z Indexed on 2010/05/16 23:10 UTC
Read the original article Hit count: 156

Filed under:
|
|

I want to double click on a div, but right now it "selects"/highlights a word. How do I make it so that this doesn't happen?

I tried:

$(this).hide().show()

and 

$(this).blur()

But it still highlights the word.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html