I have a simple script adding to a UL via a button but it's not working
<input type = "text" id ='textbox'/>
<button onclick="addPeople()">Add Players</button>
<ul id='myList'></ul>
<script>
function addPeople() {
var text = document.getElementById("textbox").value;
var li = "<li>" + text + "</li>";
document.getElementById("myList").appendChild(li);
}
</script>
can someone point me in the right direction?