jQuery - After number of elements add html!
Posted
by
Florescu Adrian
on Stack Overflow
See other posts from Stack Overflow
or by Florescu Adrian
Published on 2011-01-15T15:13:53Z
Indexed on
2011/01/15
15:54 UTC
Read the original article
Hit count: 260
jQuery
Hello. I need to know if I can count the elements inside a div and after 3 elements to add an html object.
<div id="wrapper">
<a href="#">1</a>
<a href="#">1</a>
<a href="#">1</a>
//insert html with jQuery here
<a href="#">1</a>
<a href="#">1</a>
<a href="#">1</a>
//insert html with jQuery here
<a href="#">1</a>
<a href="#">1</a>
<a href="#">1</a>
//insert html with jQuery here
</div>
© Stack Overflow or respective owner