title: How to build an array of HTML elements and their attributes in jquery?
body: <p>I'm trying to build an array of array in jquery to store data and use them later in my code.
  I'm looking to have something like this:</p>
  
  <pre><code>array[html_node][attribute] = attribute value
  </code></pre>
  
  <p>based on this type of DOM:</p>
  
  <pre><code>&lt;div id= node&gt;
    &lt;a step= "downloading" data="123"&gt;
      ...
    &lt;/a&gt;
    &lt;a step= "waiting" data="122"&gt;
      ...
    &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>can you help me figure this out?</p>