[jQuery] Re: .find().replaceWith()

2009-05-25 Thread Ricardo
You need to pass the string to jQuery: $(html).find("UP").replaceWith(""); You could also do a simple text replace: html.replace('UP', 'UP").replaceWith("") > > It does not need to be recursive, but can be. > > If recursive, will get used before the var is dumped to a div. If not > will get used

[jQuery] Re: .find().replaceWith()

2009-05-25 Thread deltaf
First, you need to get jQuery in the mix by doing $(html).find(). Then, you should probably be using this syntax: $(html).find('td:contains("UP")').replaceWith(...); Even better than replaceWith, if you only care about the contents of the tags would be .html(''); On May 25, 8:47 pm, DanN wro