dojo - dojo tutorial dom-construct in Dojo - coding dojo - dojo examples
- This module can be used to :
- Create a new element.
- Delete an element from HTML document.
- Place element in HTML document.
Iinitialisation
To be able to use the dom-construct module we need to load it as fallow :
create()
- This function can be used to create an element and add it in a specific position. It also allows you to set attributes and content.
Usage
destroy()
- This function allows you to delete an element including it's children and content from the document.
Usage
place()
- This function can be used to place nodes in a particular position in an HTML document
Usage
empty()
- This function can be used to delete content and all its children of a DOM element
Usage