how would you disable the usage of the enter key on a text area until a character is entered?
this is for a form i’m building – purely for aesthetic reasons 🙂
a bit like the facebook news feed page where you can’t press enter until entering a single character?
many thanks in advance!
Using jQuery:
Note that if your goal is to avoid any new line characters at the top of a textarea, this won’t prevent someone from pasting in new lines.