But that doesn't replaces though. I need it to replace an existing element. I suppose I can just loop through that result and replaces it but was wondering if there was one that does all of that already. Anyway, thanks.
On Mar 1, 1:28 pm, Fábio M. Costa <[email protected]> wrote: > Your on your lucky day, yes there is! > > http://mootools.net/docs/more/Element/Elements.From > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interfaces > > > > On Mon, Mar 1, 2010 at 3:13 PM, duclet <[email protected]> wrote: > > I see that there is a replaces method that allows me to replace one > > element with another. However, it requires the provided data to be an > > element. What I have is the actually HTML (not the innerHTML however). > > Is there maybe a method already that does that or would I need to > > create one myself? On a site note, is there a method to convert a > > String to an element meaning if I provide the HTML for the element as > > a string, it would create such an element and returns it?
