JavaScript Library for DOM manipulation. Replacement jQuery for Backbone (gzipped: 1kb)
Get it
$ bower install jbone --save
Add a <script>
element for jbone.js
<script src="path/to/jbone/jbone.js"></script>
- .attr(attributeName)
- .attr(attributeName, value)
- .attr(attributes)
- .val()
- .val(value)
- .css(propertyName, value)
- .css(properties)
- .on(event[, selector], handler)
- .one(event[, selector], handler)
- .off(event[, handler])
- .trigger(event)
- .find(selector)
- .get(index)
- .eq(index)
- .html()
- .html(html)
- .append(html)
- .appendTo(element)
- .empty()
- .remove()
npm install
npm test
npm install
- Open page with tests in browser
test/tests.html