Attrs is a project mainly written in JavaScript, it's free.
Method which return all the attributes set on an element.
Extend jQuery with a attrs() method which return all the attributes set on an element.