Karmagination API
- DOM Methods
- Utilities
Adding
It is possible to add additional elements to current set of elements.
add( element )
Adds more elements to the current element
Parameters:
- element <CSS String | HTMLElement | Array> Elements that will be added to current collection.
<div id="hi">a</div> <div id="hi2">b</div> <div id="hi3">c</div>
alert(Karma('#hi3').add('#hi2')); // [ <div id="hi3">c</div>, <div id="hi2">b</div> ]