This is a simple javasript app in which we can type the message in input box and when you click submit button the message is sent to the message place holder which is at the lower end of card.
JAVASCRIPT
HTML
CSS
https://maheshrautrao.github.io/Send-The-Message
- Live preview
- If you don't enter any message you will get a message saying please enter a message.
👉 I was using document.getElementById on element having id submit-btn . It was not working but when I googled I get to know that getElementById do not work with id having hypen because in javascript variables are not allowed to use hypen in their name. But the same id works with querySelector.