Hey guys,
I am trying to make an accordion with JQuery and am running into some trouble. The JQuery website shows to create your accordion content like this.
<div id="accordion">
<a href="#">First header</a>
<div>First content</div>
<a href="#">Second header</a>
<div>Second content</div>
</div>
When I do this the accordion doesn't work right and something is wrong with the formatting. If I put h3 tags around the header anchors like so
<div id="accordion">
<h3><a href="#">First header</a></h3>
<div>First content</div>
<h3><a href="#">Second header</a></h3>
<div>Second content</div>
</div>
It works. Does anyone know why this happens? It happens in Firefox 3.5 and IE 8. I also just downloaded the JQuery files today.
-Thanks