[jQuery] Re: Inserting text in a DIV

2007-08-02 Thread Klaus Hartl
Mitchell Waite wrote: Can you insert text directly into a div from jQuery or does it have to be an element like a table that is inside the div? No, that's not required: $('div').text('text only'); $('div').html('even HTML'); Hm, I didn't expect to find these under "Attributes" in the docum

[jQuery] Re: Inserting text in a DIV

2007-08-02 Thread Andy Matthews
You can insert directly into a DIV. Use the html() method: $('#yourDiv').html('this text would get inserted into your div'); _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mitchell Waite Sent: Thursday, August 02, 2007 4:08 PM To: jquery-en@googlegroups.com Su