title: Array creation and printing in jquery
body: <p>I have a whole bunch of <code>divs</code> that have a class called <code>ofint</code>. Each of them may have additional classes. I'd like to store this information about each div and then print them.</p>
  
  <p>So I'm trying to loop through all divs of class <code>ofint</code> and store the <code>div id</code> and its <code>classes</code> in an array. The idea is that I'll search the array later, but for now I need to create it and make sure it's storing the right information.</p>
  
  <p>I have some idea how to get there, but can't quite do it. How do I complete this and then print the array for double checking purposes?</p>
  
  <pre><code>var myarr = new array;  
  $(".ofint").each(function(){
      //store the div id and div classes in the array
      myarr[this.id][classes] = //the list of classes;
  });
  //print the array here
  </code></pre>