tags:

views:

57

answers:

3

there is text but you cannot select it

check this out

  • How to achieve this?
+2  A: 

You can do it easily with jQuery. Check this demo sources, for example:

$("#sortable").disableSelection();

There's a post from jquery forum explaining the situation around disableSelection. Looks like it's 'undocumented' for a long time already.

Nikita Rybak
+1  A: 

There are plenty of scripts available on the net, the one proposed by @mellowsoon is one of them.

However remember that it does not make text selection impossible, it just makes it difficult. Text selection can be "re-enabled" by the user by just disabling javascript or from the source by page.

Also such not selectable text is not very usable and may leave users frustrated.

If you are concerned with someone copying your content without your permission, use appropriate licenses and copyright, rather than such techniques (or use technologies like flash if applicable, but even here there are OCR techniques that can help copying text)

Nivas