How can I add a "div" after every each 3 repetitions?
This is my array:
[
client : "name",
client : "name",
client : "name",
client : "name",
client : "name",
client : "name",
client : "name",
client : "name",
client : "name",
]
The result expected is:
<div>name</div>
<div>name</div>
<div>name</div>
<div class="clear"></div>
<div>name</div>
<div>name</div>
<div>name</div>
<div class="clear"></div>
<div>name</div>
<div>name</div>
<div>name</div>
<div class="clear"></div>