1
I need to add a tag breaking (<br> or <hr>) each quantity of <div> dynamically arising.
For PHP, i group 10 records by <div>, that is, every 10 records creates a <div> to start collecting the new results, thus:
<div class="grupo">
<?php foreach($qr->result() as $key => $resultado){
if ($key % 10 === 0) {
echo "</div><div class=\"grupo\">";
}
}// foreach ?>
</div>
<!--/.grupo-->
Then after 3 <div class="grupo"> created, the break should be inserted (<br> or <hr>).
By PHP I can’t, so I’m trying by Jquery. I believe it’s with for, appendTo and anything else that I have no idea what it is or how to do.