#DOMinodes DOMinodes is a library based on jQuery that allows the user to make AJAX requests, handle events, and manipulate the DOM. This is implemented using JavaScript and the native DOM API.
##Technical
###Example: #####HTML Document
<!DOCTYPE html>
<html>
<head>
<title>DOMinodes</title>
</head>
<body>
<h1>Countries:</h1>
<ul>
<li class="europe">Germany</li>
<li class="europe">France</li>
<li>United States of America</li>
<li class="europe">Spain</li>
<li class="europe">Italy</li>
<li>Australia</li>
<li>Japan</li>
<li>China</li>
</ul>
</body>
</html>
#####Return all DOM elements with class name "europe"
$dn(".europe");
//Returns:
//DOMinode {nodes: [<li class="europe">Germany</li>, <li class="europe">France</li>, <li class="europe">Spain</li>, <li class="europe">Italy</li>, ]}
#####Add a class to unordered list
$dn("ul").addClass("countries");
##Methods DOMinodes includes the following methods:
html:
allows the user to either set the innerHTML of an element by passing an argument, or returns the innerHTML of the first node in the Arrayempty:
removes all nodes in the internal arrayappend:
accepts a DOMinode, HTML element, or a string. It will append the outerHTML of each element in the argument to the innerHTMl of each element in the DOMinodeattr:
returns the first attribute of the first elementaddClass:
adds a class to elements passed inremoveClass:
removes a class from elements passed inchildren:
returns a DOMinode containing all the children of all nodes in the arrayparent:
returns a DOMinode containing the parents of each nodefind:
returns a DOMinode of all nodes matching the selector passed in as an argumentremove:
removes the html of all nodes in the array, and removes all nodes from the array