title: jQuery: How to push elements with two values to an array
body: <p>I am new to jQuery and hope someone can help me with this. </p>
  
  <p>I have a large HTML table with some editable TDs where each of these TDs has the class "<code>editable</code>". </p>
  
  <p>Now I need to check which of these editable TDs contains text and then <strong>create an array with the corresponding TD's name AND text</strong>. </p>
  
  <p>So far I have the following which should be ok regarding the text but I am not really sure how I can also get the corresponding names in the array. </p>
  
  <p><strong>My jQuery:</strong> </p>
  
  <pre><code>var edited = [],
      editedName;
  $('.editable').not('.default').each(function(){
      editedName = $(this).attr('name)';
      edited.push( $.trim($(this).text()) );
  });
  </code></pre>
  
  <p>Can someone help me with this ?</p>
  
  <p>Many thanks in advance, Tim.</p>