append
This method can be used to append an element or HTML string to the end of each element in the collection.
// Append an element to the elements
append: function(element) {
this.elements.forEach(function(el) {
el.appendChild(element);
});
return this;
},
// Append an HTML string to the elements
append: function(html) {
this.elements.forEach(function(el) {
el.innerHTML += html;
});
return this;
}