Maximus007
Technical User
I have a list box that the user is able to select names from. Then they click the add button to move the selected name to a textarea. Here's how the names are appearing
Example: Name1Name2Name3
How can I have the next name move to the next line? Here's the code I am using to move them over.
function AddEmployees(){
var Display=document.getElementById("Display")
var option=Display.options[Display.selectedIndex].text
var txt=document.getElementById("Employees").value
txt= txt + option
document.getElementById("Employees").value=txt
}
Example: Name1Name2Name3
How can I have the next name move to the next line? Here's the code I am using to move them over.
function AddEmployees(){
var Display=document.getElementById("Display")
var option=Display.options[Display.selectedIndex].text
var txt=document.getElementById("Employees").value
txt= txt + option
document.getElementById("Employees").value=txt
}