> Despite having used JQuery for some time and also written plugins, I've never
> discovered a good way to replace one element with another.
>
> Just need something like: $("#myElement").replaceWith("<div>new
> element</div>")
I usually do this:
$("#myElement").after('<div>new element</div>').remove();
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
