I have an array that I am using to create checkboxes dynamically. The checkboxes are are appearing but not the label values. How can I get the label values to show?
There is currently only one item in the array and that is working properly as one checkbox is loading. The label value is not coming through. (see attached screenshot)
for (var value of uniquePackageStatuses) {
$('#packageStatusCheckboxes')
.append(`<input type="checkbox" id="${value}" name="status" value="${value}">`)
.append(`<label for="${value}">${value}</label></div>`)
}