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[, selector], handler)
- off(events[, selector], handler)
- trigger(events[, data])
- find(selector)
- parent([selector])
- css(prop, value)
- css(propArray)
- attr(attrName, value)
- html([htmlText])
- text([text])
- val([value])
- simblings([selector])
- prev([selector])
- next([selector])
- addClass(class)
- removeClass(class)
- toggleClass(class)
- hasClass(class)
- prepend()
- append()
- parents()
- 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).
