0

Im having a select tag with multiple selection. It has about 8 options. I want to make a text area or a place where it will show the options i have selected. Im working on something that will have like 100 options in select tag and i want to keep track of which options i select. Any ideas how to? It can be in javascript or jquery.

const ddselect = () => {
  var d = document.getElementById("node-input-options");
  let displayText = d.options[d.selectedIndex].text;
  document.getElementById("txtArea").value = displayText[i];
  console.log(displayText);       
};

This populates the textarea but with only 1 option.

Moamen
  • 372
  • 2
  • 8
ivexy
  • 21
  • 3

0 Answers0