Append to an element

Append the ele element to the end of the target element:

target.appendChild(ele);

More

Previous
Add or remove class from an element
Next
Calculate the mouse position relative to an element