I have textarea
, user keeps writing inside it without pressing enter. If they press enter I get \n
char which I need, but sadly they are not pressing enter and instead they just keep typing!
Now, Is there any way I can add new line character
inside the string just after the textarea
move to next line?
Potential Duplicate : Automatic newline in textarea
Note : The question shared above has an accepted answer. But the link is not working :( The other options aren't very efficient.
I have several technologies to manipulate the String
I am getting from <textarea>
. So feel free to give solution for any single one.
- HTML
- JavaScript
- Twig
- php
- CSS