I have the following ugly hard code:
<div class="label">
<p id="CO-0"></p>
<p id="CO-1"></p>
<p id="CO-2"></p>
<p id="CO-3"></p>
</div>
How do I use iteration in JavaScript to insert the 0, 1, 2, and 3 p id's automatically?
This is my start:
for (i = 0; i< 3; i +=1){
$('.label').html('<p id='+[i]+'></p>');
}