By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,745 Members | 1,577 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,745 IT Pros & Developers. It's quick & easy.

detecting change in textarea

P: n/a
Hello, I am trying to detect whether a user entered text in a textarea
or hit the delete/backspace button (thus, erasing something). Once
that is detected, I would like to set "var bSaveRequired = true;". It
would be great if this function worked cross-browser -- IE 6.0 and
Firefox.

Any ideas are greatly appreciated, - Dave

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
laredotorn...@zipmail.com wrote:
Hello, I am trying to detect whether a user entered text in a textarea or hit the delete/backspace button (thus, erasing something). Once
that is detected, I would like to set "var bSaveRequired = true;". It would be great if this function worked cross-browser -- IE 6.0 and
Firefox.

Any ideas are greatly appreciated, - Dave


[untested]

<textarea
onkeyup="bSaveRequired=(this.value!=this.defaultVa lue)">
</textarea>

http://docs.sun.com/source/816-6408-...ea.htm#1193303

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.