What Brian wrote should work, because it's basically replacing the
contents of the div with an empty string. Try it out. Also, you could
try .empty()
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 24, 2009, at 12:05 PM, Charlie22 wrote:
Thx, but I need leave DIV tag on the place..I thought $
('#test>*').remove(), but no success.
On 24 Led, 17:54, brian <bally.z...@gmail.com> wrote:
$('#test').text('') or $('#test').html('') might be what you want.
On Sat, Jan 24, 2009 at 11:22 AM, Charlie22 <ch...@post.cz> wrote:
I have question how easy remove content from DIV, e.g.
<div id='test'>test text</div>
I thought that code
$('#test').remove()
managed it, but it doesnt true. Thx in advance.- Skrýt citovaný
text -
- Zobrazit citovaný text -