title: Get all attribute properties
body: <p>I would like to get all the attribute properties with a Jquery event. I know I can retrieve info of the element by doing something like this:</p>
  
  <pre><code>$(this).attr('id');
  </code></pre>
  
  <p>So if I want to include the class I would do something like this:</p>
  
  <pre><code>$(this).attr('id');
  $(this).attr('class');
  </code></pre>
  
  <p>However I want to shorten/simplify the code as much as possible, so I was wondering whether I could get all the attribute properties at once without specifying them first. Is there a way to do this? Maybe a plugin? </p>