Advertisement
Shell_Casing

code

Dec 19th, 2018
1,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let tagSelectorsArray = document.querySelectorAll('.tagSelectors');
  2.  
  3. // populates the tags dropdown menu
  4. function populateTagsInput() {
  5.     let tagOption = document.createElement('option');
  6.     tagsArray.forEach(tag => {
  7.         tagOption.textContent = tag;
  8.         tagOption.setAttribute('value', tag);
  9.         tagSelectorsArray.forEach(selector => {
  10.             selector.append(tagOption);
  11.         });
  12.     });
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement