1document.getElementById("name").addEventListener("keyup", function() {
2 var nameInput = document.getElementById('name').value;
3 if (nameInput != "") {
4 document.getElementById('send').removeAttribute("disabled");
5 } else {
6 document.getElementById('send').setAttribute("disabled", null);
7 }
8});
9