Check each Property of an Object

Check each Property of an Object

Hello, i am locking for something to get all Propertie`s  of an Object (with an each loop?)

  1. <div id="blub" class="blah" name="blah"></div>

  1. <script>
  2. $('div').attr(function(){
  3. //somethink like that. Know that its wrong
  4. $.each(this)
  5. })
  6. </script>