I noticed a new way to post status comments on Facebook. Basically, when you write your comment, you don’t have buttons for a click, but an enter key to click to send a comment. Now I would like to do that too. And I was thinking about possible solutions. It occurs to me that they are <input>sent with the enter button pressed, but this text field is not.
- Or I write input (type of text) and set the upper caps of the height more than the line
- Or I need to add a text box and somehow submit this form when the user presses the enter key.
What's better? And if the answer = second, how can I do this?
source
share