Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Textarea onchange function

Textarea onchange function

rishid
03-15-2006, 02:48 PM
Hi,

I have some text above a a textarea that displayed (saved) after a form is submitted, I would like the text to change to not saved after the text are has changed

Here is the code I tried, doesn't seem to be working.

Edit:
Kinda got it working using onfocus="internalsave.innerHTML='Not Saved'" seems to work, but when I tried
onfocus="document.getElementById('internalsave').innerHTML='Not Saved'" it doens't seem to work. Using IE6.

Any ideas?

Thanks


Internal Notes <div style="color:#CC6600" id="internalsave">(Saved)</div>
<textarea name="Notes_Notes" rows=12 wrap=hard cols=58 onChange="document.getElementById("internalsave").innerHTML="Not Saved";">blah</textarea>

Beagle
03-15-2006, 07:50 PM
have you tried using single quotes instead of double?

onclick="document.getElementById('innerslave').innerHTML = 'Not Saved';"

Beyond that, can you explain what you mean by "it doesn't work"? Getting error messages? No behavior at all? What's actually happening?


 

TOP

Hyperthreading hurts s
HP sharpens blade PC l
Apple goes for Quad po
Itanium gets scaled do

For more info

HP sharpens blade PC l
Hyperthreading hurts s
can not call click() i
script does not work o
smart menu 
write to an html file 
FireFox doesn't recogn
Changing e.keyCode (e.
Clearing a range creat
UPDATE: My mouse over 

News Archive

onChange Help 
beforeload? vs onload.
Problem with document.
decreasing my javascri
Problem with \\ and \ 
how to stop scrolling?
Change Label Text Colo
Can I forward a page b
2 javascript functions
Validating a textbox 

Related stories:

simulate keypresses
Horizontal window scrolling on mouseclick
Changing contents in one iFrame after another loads
how to pass the dom object of current html page to java
Scrolling Text Problem
Code works in Firefox but not in Internet Exploder
Having a problem deleting a cookie... can anyone help
Upload pic and text to new html file
Need help with two radio buttons controlling on Div hide/show

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics