.attr(null) can return element attributes

.attr(null) can return element attributes

Hello!

It's a example:
  1. <div id="test" style="font-color: red;" class="test-one" onclick="test()"></div>
Then if you do:
  1. $("#test").attr();
Will return:
  1. {
  2.   id: 'test',
  3.   css: {
  4.     fontColor: 'red'
  5.   },
  6.   class: 'test-one',
  7.   click: function(){
  8.     test();
  9.   }
  10. }

Bye.