Mootools: add HTML text to an Element
Posted
by Damiano
on Stack Overflow
See other posts from Stack Overflow
or by Damiano
Published on 2010-06-14T18:27:12Z
Indexed on
2010/06/14
18:32 UTC
Read the original article
Hit count: 218
JavaScript
|mootools
Hello, i'm using mootools.js, i have this code:
this.html.chat_title = new Element('span', {'id' : 'chat_title', html : 'this is the title'}).inject(this.html.container);
The problem is:
span id="chat_title" html="this is the title"
as you see it doesn't put the text inside the HTML of the tag but as an attribute.
What is wrong?
Thank you so much!
© Stack Overflow or respective owner