I noticed the new Facebook way of sending comments on status. Basically when you write your comment you have no buttons to click but the "enter" key to press in order to submit the comment. Now I'd like to make this thing too. And I was thinking about the possible solutions. It comes to my mind that <input>
are submitted with the enter button pressed, but that textarea are not.
- Either I write an input (type text) and set an height witch covers more than a row
- Or I have to add a textarea and somehow submit that form when the user press enter.
Which is the best? And if the answer = second, how could I do that?