I'm trying to disable the ability for a user to select the text that they put in to a textarea. There is a question similar to this but I've fiddled around on the jsfiddle and can't get it to work properly. I need it so that if a user tries to select user submitted text in a text area with either Ctrl+A or by the mouse, they can't, (without disabling the ability to type in the first place).
I tried the
*.unselectable {
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
user-select: none;
}
CSS method but that doesn't seem to work at all. Really stuck on this, is it even possible?