- Only element(ex: div), id(ex: .id), class(ex: #class) can be used as selector for now, element under which element has to be created.
- First argument of addelement is required which is the element to be created.
- Second argument if given should be associative array, it is for the attributes of the element to be created.
- Third argument is data, if any string to be inserted. It can be a string having other html elements.
- Check console for error logs.