I'm looking for a way to create elements form string eg this doesnt work:
$('some').adopt('<span>test</span>');
you must use new Element
but i have a huge html string. I could do this:
new Element('div', {html: hugeHtmlString});
but its so wrong. why can't it be as simple as it is in jquery
http://mootools.net/docs/more/Element/Elements.From
does the job
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With