I have vertical div list and I am trying to create a content accordion.
The layout looks like approximately like this:
<div class='item'>
<li class='title'>...some a tag here...</li>
<div class='content'></div>
</div>
<div class='item'>
<li class='title'>...some a tag here...</li>
<div class='content'></div>
</div>
div class item should be listed one below other, div class content should be hidden, and on click div class item, the content should expand vertically.
Can someone make me a basic setup? I cant get this going.
Keep in mind that its not necessary to have exact same layout (div and li elements within), I can change this and modify on my side if there is a better way to organize this.
I am using jquery.
<li>tags inside anything other than<ul>or<ol>tags. Whilst this will still render it is not inline with HTML specs. - Nunners