title: Twitter bootstrap Make first panel of accordion open by default
body: <p>I am using twitter bootstrap to make accordions on the page. I want to make the first panel open on each page. This is the code that I wrote:</p>
  
  <pre><code>    var accordion_list = $(".prime-content .accordion-body");
      accordion_list.each(function(index, element){
        accordion_list.addClass(index == 0 ? "in" : "");
      });
  </code></pre>
  
  <p>This however, is adding "in" class to all the elements. What needs to be fixed?</p>