void ng.Element.replace (Mixed elm) vs. 1.1.0 Full+Lite

Replace the current HTML Element with the given elm HTML Element.

Parameters

Mixed elm Required vs. 1.1.0 Full+Lite
The HTML Element to replace the current HTML Element. This can be one of the following:
  • String: the replacement HTML Element ID
  • HTML Element

Examples

Using ng.Element.replace(elm)
Demo:
Main Div will be replaced.
This div will take over.

API Menu