I am struggling with displaying a list of cities in an inline format.
<div class="accordion-container">
<a href="#" class="accordion-toggle">London</a>
<div class="accordion-content">
<p>Information about London</p>
</div>
</div>
When I click on a city header, I want to use slideToggle to show more information about that city.
accordionContent.slideToggle(250);
However, when I do this, it also slides down the city header next to it, creating a large white space area. Is there a way to only slide the divs below the selected city?
Here is a jsfiddle with my code.