I've been having an idea going 'round in my head for a couple of days now, and would like to know if this is possible with JS/jQuery.
Let's say I have an HTML textarea element with text. When hovering over a word, I'd like that word to be selected. An idea would be to select the word according to the first occurance of a space left and right of the word.
Is there a plugin for that already, or would that even be possible with jQuery? You'd have to get the position of the curor for that, and somewhat "see" what char is right at that position, right?