jquery-all-attributes
v0.2.0 Attributes jQuery
jQuery All Attributes
jQuery plugin to override proper $.fn.attr method to return all attributes if no arguments provided.
Getting Started
<script src="jquery.js"></script>
<script src="dist/allAttributes.min.js"></script>
Examples
<a id="test"
href="#foo"
data-foo-bar="1"
data-foo-bar-baz="qux"
data-foo-bar-baz2="true">Yay</a>
$("a#test").attr();
// { href: "#foo", data: { foo: bar: { _: 1, baz: "qux", baz2: true } } }
Testing
$ npm install
$ npm test
Author
- Atsushi Nagase (http://ngs.io/)
License
npm i jquery-all-attributes
Metadata
- Unknown
- Whatever
- Atsushi Nagase
- released 4/30/2014