how to make input tag dynamic :  I am designing a chat application just like web whatsapp. I have a class named as chat-body where the messages are displayed and i have another class named as chattext where the user can enter the message whatever he or she wants to send.
Now, what my question is how to make it dynamic i.e if user enters some text in the chattext input tag and hits enter then the entered text should be displayed in the chat-body class.
Any suggestions..?[this is the screenshot of my chat application which i am designing][1]


  [1]: https://i.stack.imgur.com/wXbP7.png