Click to See Complete Forum and Search --> : Cash Back


Geat
02-13-2003, 10:17 AM
How do I determine if there is text selected in a text area, and where that text starts and finishes?

I'm creating an online content editor, and I want to shove various tags around the selected text in the content text area...

Nevermore
02-13-2003, 01:42 PM
You cant - you can only determine whether there is any text selected.

pyro
02-13-2003, 02:10 PM
These links to some of Dave Clark's project's might help you out

http://www.daveclarkconsulting.com/research/insert_at_caret.html
http://www.daveclarkconsulting.com/research/edit_textarea.html