Skip to content

Very small JavaScript wrapper around native DOM manipulation. Just the methods I personally use a lot.

Notifications You must be signed in to change notification settings

secretorange/super-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

super-lite

Very small JavaScript wrapper around native DOM manipulation. Just the methods I needed for small bit of work.

jQuery style syntax:

// On load syntax
$(function(){
  // Select on ID, class or tagname
  var e = $(".class-name");
  
  var value = e.val(); // Value
  
  // Set some html
  e.html("<p>Set some html</a>");
  
  // Set an attribute
  e.attr("data-id", "123");
  
  // Set event handlers
  e.on("click", function(){
    // Do stuff
  });
});

About

Very small JavaScript wrapper around native DOM manipulation. Just the methods I personally use a lot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published