On 11/14/06, Aaron Heimlich <[EMAIL PROTECTED]> wrote:
Technically, the value of a <textarea> is in a text node that is the first child of the <textarea>. So, unless jQuery ignores text nodes (which it very well might), that *should* work.

OK, so I've done some more testing with this.

The short version:

Ignore my previous email.

$("#id").val("");

is the best way to go.

The long version:

When you are typing something into a <textarea>, IE updates the contents on id.firstChild.nodeValue while FireFox doesn't. Both of them update the value of

$("#id").val();

whenever the contents of the <textarea> changes.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to