In order to gain a better understanding of Vanilla Javascript, I recreated the basic functionality of jQuery, including AJAX requests.
To set up WisDOM, place the below script tag in the head of your html document.
<script src="https://rawgit.com/MattVanLaw/WisDOM/master/lib/wisDOM.js"></script>
For more examples, visit a small project made using the library, Studio Ghibli Facts.
Set inner html of the selected element
removes inner html from selected element
If supplied children is a simple string (e.g, "text"), will append to innerHTML of selected element, where as, if it is a string of an HTML element, it will append as a child of the selected element.
$w(".main").append("<p class='wow'>Wow</p>")
When only supplied with a key will return the associated value. Will set the value, when both parameters are supplied.
Returns an HTMLCollection of children.
Returns a DOMNodeCollection of parent element.
Will find elements that match provided string, and return a DOMNodeCollection.
Removes selected node and all children.
Add and remove events