Upvote 1

How can I know if a input text area has a "enter/return key" or not.

Answered Judit 7 years ago

I want to set up different actions if the user has entered a word or more in a text area field. Each word is inputted in his own line so I would need to detect if the text field has a return entered. Is that possible?

Replies (2)
photo
1

You can use a regular expression for that. Check the prototype attached.

photo
1

Awesome, thanks!

Leave a Comment
 
Attach a file