I've got this json data and I need to replace html with it's data.
I've tried looping through it with .each, but I can't get it to output right.
// json data variable output
{
"Topic Example Left": [
"a",
"b",
"c",
"d"
],
"Topic Example Right": [
"e",
"f",
"g",
"h",
]
}
I need to empty check-row-0 and check-row-1 and replace the current results below with the json data.
// topic example left div
<div id="check-row-0" class="col-sm-12 col-md-6 col-lg-6 list_column list_column_border">
<label class="informationTitle">Special Programs</label>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>a</label>
</div>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>b</label>
</div>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>c</label>
</div>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>d</label>
</div>
//topic example right div
<div id="check-row-1" class="col-sm-12 col-md-6 col-lg-6 list_column list_column_border">
<label class="informationTitle">Special Programs</label>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>e</label>
</div>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>f</label>
</div>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>g</label>
</div>
<div>
<label class="informationPoint"><i class="fas fa-check"></i>h</label>
</div>
Thanks for any help!