0
Need to put the text from the input to the div (chat)
5 Answers
+ 2
below code works I think,
function data(){
chat.innerHTML = input.value;
}
Or simple look at this changes I made
https://code.sololearn.com/W2HB1SpW08Vt/?ref=app
+ 4
//Use this script
<script>
var chat,input;
function data(){
chat=document.getElementById("chat");
input=document.getElementById("input").value;
chat.innerHTML=input;
}
</script>
+ 2
Chris welcome
+ 1
Thanks @Mellifluous way more simpler
0
Thanks