Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement