title: jQuery array keep returning [object Object]
body: <p>I am creating a jQuery array but my code keeps returning [object Object], 3 times.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var idArray = [];
  $('.taskPHP').each(function() {
    var idStr = { 
      'taskPHPid': $(this).attr('id'), 
      'taskValue': $(this).val() 
    }
    idArray.push(idStr);
  });
  
  alert(idArray);
  </code></pre>
  
  <p>EDIT:
  Just call me stupid...i knew i couldn't alert an array. err...to many beers and programming don't mix. </p>
  
  <p>I will give u credit as soon as I can. Thanks for the help. </p>