jqlite

    0.2.42 • Public • Published

    jqLite

    Tiny JavaScript DOM query library that uses pure CSS selectors

    Build Status


    Installation

    npm install jqlite --save

    or

    bower install kilt-jqlite --save

    Main Object

    jqlite object ($)

     
      // starting by '<' returns a collection of DOM nodes from this code
      // result: [<HTMLElement>]
      $('<div class="foo">bar</div>');
     
      // also accepts several objects at root level
      // result: [<HTMLElement>, <HTMLElement>]
      $('<div class="foo">bar</div><div class="bar">foo</div>');
     
      // jqlite selectors returns collection by accepting pure css selectors
      // jQuery uses sizzlejs to parse selectors
      $('#some-id');
      $('.some-class');
      $('#wrapper .item');

    Main Methods

    Relative Queries

    missing docs:

    Handling Classes

    Moving DOM Elements

    missing docs:

    Getters / Setters

    Miscelanea

    Event Methods

    collection: jqlite object returned by a query and find/filter like functions

    Install

    npm i jqlite

    DownloadsWeekly Downloads

    968

    Version

    0.2.42

    License

    MIT

    Last publish

    Collaborators

    • jgermade