'How to store HTML input text as a nodejs variable
I need to store the text in the html input box as a nodejs variable, when the 'send to server' button is clicked. I am just a beginner in nodejs so please try keeping the answer minimal. Thanks!
<input type="text" id="message-box">
<button onclick="sendMessage()">Send to server</button>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
