[jQuery] Re: .replaceWith() broken in Firefox 2 I think

2007-09-24 Thread Steve Finkelstein
This is actually happening in IE7 also. Is it possible that something is hosed with my code? I'm more confident it's that than a broken replaceWith() but I'd really like to know why it only works once, and then I need a page refresh for that ajax effect. - sf On 9/24/07, Steve Finkelstein

[jQuery] Re: .replaceWith() broken in Firefox 2 I think

2007-09-24 Thread John Resig
Are you meaning to do .html(..) instead of replaceWith? replaceWith completely removes the element (which means that when it's called the second time, nothing happens, since the element no longer exists). Whereas .html() simply replaces the contents of the element. --John On 9/24/07, Steve

[jQuery] Re: .replaceWith() broken in Firefox 2 I think

2007-09-24 Thread Steve Finkelstein
John, Well figures .. it is my code. .html() certainly does the trick. I wasn't aware that replaceWith removes stuff from the DOM indefinitely. A, thanks for saving me from hours of troubleshooting. I really really appreciate it. - sf On 9/24/07, John Resig [EMAIL PROTECTED] wrote: Are