.attr(null) can return element attributes
Hello!
It's a example:
- <div id="test" style="font-color: red;" class="test-one" onclick="test()"></div>
Then if you do:
- $("#test").attr();
Will return:
- {
- id: 'test',
- css: {
- fontColor: 'red'
- },
- class: 'test-one',
- click: function(){
- test();
- }
- }
Bye.