Click to See Complete Forum and Search --> : change hoghlighted text in input/textarea
spykemitchell
10-04-2003, 01:26 PM
If i have a text area with something typed in it, is there anyway that i can highlight some text and then click a button or select a drop down menu item which changes the highlighted text to something else with the original text in it. Hard to explain, here is an example,
Hello My Name Is Spyke
-i highlight spyke and click the change button-
Hello My Name Is Spyke
(X)HTML/CSS cannot be rendered in a TEXTAREA; however, for those that use Internet Explorer version 5.x and higher, you can use a contenteditable DIV.
[J]ona
spykemitchell
10-04-2003, 03:51 PM
O........K.......
I Think.....
Explain please...
<div id="myDivision" contenteditable>
<b>Change this!!</b>
</div>
[J]ona
spykemitchell
10-04-2003, 03:54 PM
Oh, hang on, No i didn't mean i wanted to change the colour of a block of highlighted text, i just want to change the actuall text, example...
Hello My Name IS Spyke.
-Click Change-
Hello My Name IS Spyke
Like That, just changes the text nothing else!