setContent

attaches html container to the template

void setContent(any node);
nodeanyHTML node, or ID of html element that need to be attached

Example

//assuming that we have <div id="a12">Content</div>
$$("mytemplate").setContent( document.getElementById("a12") );
//or
$$("mytemplate").setContent( "a12");

Details

Works similar to the content property

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.