1 Vote Vote

Create a <br /> when you press Enter

Posted by topdog 176 days ago Questions| press create way All

Okey so I have made a textarea form where you can change your description and like in my previus question I asked if there was any way of having banned tags. But now is there any way of when you press "Enter" that a
will be set in the textarea so that the user doesn't have to type in
every time they want a line break?

I thought of something like if it can find places where there's nothing, but would this work? I'm not familiar with onpress events... Or if it checks the input after the user has pressed submit and then it checks for line breaks.

I have seen this on YouTube , this site and a lot of other sites too.

Originally asked by: ZyteX on Stack Overflow

Discuss Bury


Who Voted for this Question