hi,
I want a script which can automatically change color of the text in a textarea
for example if the user enters hello it should automatically change to green
like it happens on code editors.
can any body help!
hi,
I want a script which can automatically change color of the text in a textarea
for example if the user enters hello it should automatically change to green
like it happens on code editors.
can any body help!
A textarea is not a code editor. If you want about as many features as possible like that use:
http://www.dynamicdrive.com/dynamici...itor/index.htm
or a script like it. If you just want to know how to change the color of a textarea using javascript:
Code:<body> <textarea id="test" cols="50" rows="5" wrap="virtual""></textarea> <script type="text/javascript"> document.getElementById('test').style.color='green'; </script> </body>
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks