Thanks
Brandon. I'm just an idiot, and didn't see that Erik had already
responded last night, :0/
Anyway, I appreciate the possible alternative solution.
Chris
Brandon Aaron wrote:
I believe the solution provided should work:
$("#id").val("");
and if it actually doesn't you could try:
Thanks
Erik, I completely missed the fact that you'd responded. **sheepish
grin**
I appreciate the help. :o)
Chris
Erik Beeson wrote:
You don't want empty(), you want to set the value of the
textarea to an empty string. Try (untested):
$("#id").val("");
empty() is for removing child
I'm trying to do what I thought was pretty simple:
$(#id).empty();
where #id is the id of a textarea. I'd like to clear out the text
area when my ajax call returns.
What am I doin' wrong?
bump...
Can anybody help with this?
Please provide some more information: What
Hi folks,
I'm trying to do what I thought was pretty simple:
$("#id").empty();
where "#id" is the id of a textarea. I'd like to clear out the text
area when my ajax call returns.
What am I doin' wrong?
Thanks,
Chris
___
jQuery mailing list
You don't want empty(), you want to set the value of the textarea to an empty string. Try (untested):$(#id).val();empty() is for removing child elements. See the documentation for more info.
--ErikOn 11/14/06, Christopher Jordan [EMAIL PROTECTED] wrote:
Hi folks,
I'm trying to do what I
On 11/14/06, Erik Beeson [EMAIL PROTECTED] wrote:
empty() is for removing child elements. See the documentation for more info.
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
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