I want to use JCarousel to display UL elements with LI containing only eight images (two rows of four), something that looks like this:
<li>
<div>
[image][image][image][image]
[image][image][image][image]</div>
</li>
<li>
<div>
[image][image][image][image]
[image][image][image][image]</div>
</li>
I thought a good way to do this would be to use after()
to add some closing and opening tags like so:
$(".jcarousel-item img:nth-child(9)").after(</div></li><li><div>);
But I guess I am misunderstanding the nature of after()
, because it won't seem to insert closing tags unless they lead with opening tags.
Is there a better way to do this with wrapInner()
?