The mQuery (or Mini-jQuery) is a most simple and clean way to query DOM Elements and bind Event Listeners without jQuery.
The objective of mQuery.js is not replace the jQuery, is provide a simple way to manipulate DOM Elements and your events with jQuery-like functions without your robust functionalities and with that, make a lightweight library.
Actually, all functions listed behind, are jQuery compatible. Then, all jQuery code with any functions listed, will works.
- ready(callback)
- each(callback)
- on(events, handler)
- off(events, handler)
- trigger(events)
- find(selector)
- parent([selector])
- css(prop, value)
- attr(attrName, value)
- html([htmlText])
- text([text])
- val([value])
- prepend()
- append()
- prev()
- next()
- simblings()
- parents()
- addClass()
- removeClass()
- toggleClass()
- hasClass()
- width()
- height()
All principal jQuery's constructor works fine. Like:
- m$(DOMReadyCallback)
- m$(DOMElementArray)
- m$(DOMElement)
- m$(MQueryElement)
- Created and maintained by Emerson C. Romaneli (@ECRomaneli).
