Hi. I have a simple unordered list with 16 list items. I want to add a new list item after every fourth existing list item using jquery
How would I do that? Code below:
<ul>
<li>some stuff</li>
<li>some stuff</li>
<li>some stuff</li>
<li>some stuff</li>
<li class="clear">This is what I want to add</li>
<li>some stuff</li>
<li>some stuff</li>
<li>some stuff</li>
<li>some stuff</li>
<li class="clear">This is what I want to add</li>
and so on...
</ul>