JavaScript - Textarea Selection
Posted
by brad
on Stack Overflow
See other posts from Stack Overflow
or by brad
Published on 2008-12-30T21:37:04Z
Indexed on
2010/05/02
21:47 UTC
Read the original article
Hit count: 296
The Problem
I am working on an in-browser editor within a textarea
. I have started looking for some information on dealing with textarea
selection and found this jQuery plugin that does some simple manipulation. However, it doesn't explain what's going on.
The Question
Where can I find a good resource on Textarea Selection in JavaScript, preferably with a description of both pre-DOM3 and post-DOM30 scenarios?
[Edit]
In a great answer from Borgar, I have found several different places to start with contentEditable
, selectionStart
, and selectionEnd
. I'll be looking into these things and posting any good tutorials I might find.
© Stack Overflow or respective owner