There appears to be a bug in the jQuery 1.4 implementation of
replaceWith. If you try to replace an element with just plain text,
jQuery removes the element altogether and does not swap in the text.
It works fine if the text is surrounded by tags. For example:
div id=foothis is some text/div
On Wed, Jan 20, 2010 at 8:43 AM, teknoFX shmuel...@gmail.com wrote:
There appears to be a bug in the jQuery 1.4 implementation of
replaceWith. If you try to replace an element with just plain text,
jQuery removes the element altogether and does not swap in the text.
From the replaceWith
This is not a bug, if u want to replace data contained on the element, you
can use operator $(element).html('any html or text');
*Email: bobo...@gmail.com
ICQ: 382081663
Skype: evgeny_bobovik
Gk___*
3 matches
Mail list logo