You probably need awesome and lightweight, modern and performant javascript library. This does: inspired by umbrela js and Jquery
- DOM traversal (selector, filter, find, each, etc.)
- DOM editing (classes & attributes, html, before, etc.)
A couple of simple examples:
// Simple add/remove class like jQuery
Agis("button").addClass("red")
Agis("button").removeClass("red")
// Handle parent/child node
Agis('#mydiv').parents().forEach(function(parentNode){
// todo
} )
There are few ways to use Agis JS:
Instead of installing it, you can just play with it in JSFiddle:
Using npm is a front-end package manager that makes it super-easy to add a new package:
npm i agis
If you like it or prefer to try it locally, just download agis.js
:
[Download Agis JS] (https://raw.githubusercontent.com/VasimHayat/Agis/master/dist/agis.js)
Add it to your project:
<script src="agis.js"></script>
Current usage for IE 10+