let tagSelectorsArray = document.querySelectorAll('.tagSelectors'); // populates the tags dropdown menu function populateTagsInput() { let tagOption = document.createElement('option'); tagsArray.forEach(tag => { tagOption.textContent = tag; tagOption.setAttribute('value', tag); tagSelectorsArray.forEach(selector => { selector.append(tagOption); }); }); }