title: Populating Dojo AccordionContainer
body: <p>This code generates an array length of children in an accordion style</p>
  
  <pre><code>require(["dijit/layout/AccordionContainer", "dijit/layout/ContentPane", "dojo/domReady!"],
          function(AccordionContainer, ContentPane){
      var aContainer = new AccordionContainer({style:"height: 300px"}, "markup");
      len = dataArray.length;
      for ( var i =0; i&lt;len; i++);
      {
      aContainer.addChild(new ContentPane({
          title:dataArray[i].title,
          content: dataArray[i].content
      }));
      }
      aContainer.startup();
  });
  </code></pre>
  
  <p>I am trying to populate the content part of each child. For instance, let's assume I have a list of 10 things to add to the content area. How do i populate the content area with this list(thinking of a for loop but just not sure how to implement it), and also possibly add a checkbox beside each item in the list, and then a button at the end. For example, let's assume the title of the of the contentpane is Cars. Once Cars is clicked, a list of car models will appear in accordion style with a checkbox beside it. A "Buy" button will be at the bottom of the content area to be clicked once specific cars are selected. I am new to Dojo. Been stuck on this for a while. Any help will be greatly appreciated.</p>