0

Need to put the text from the input to the div (chat)

https://code.sololearn.com/Wo1xKRD6I3Lq/?ref=app

5th Dec 2018, 5:37 PM
Chris
Chris - avatar
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
5th Dec 2018, 6:38 PM
UwU Discover Me
+ 4
//Use this script <script> var chat,input; function data(){ chat=document.getElementById("chat"); input=document.getElementById("input").value; chat.innerHTML=input; } </script>
5th Dec 2018, 6:14 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
Chris welcome
5th Dec 2018, 6:44 PM
UwU Discover Me
+ 1
Thanks @Mellifluous way more simpler
5th Dec 2018, 6:41 PM
Chris
Chris - avatar
0
Thanks
5th Dec 2018, 6:38 PM
Chris
Chris - avatar