I have this form where it submits by pressing enter key.
I want it to function except for textarea, where it should has it usual behavior adding a new line in text-area
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The default behavior is that the form doesn’t submit if you press enter inside a textarea as seen in the following live demo. It simply adds a new row inside the textarea. You don’t need any javascript for this. On the other hand if the the user presses enter while inside a normal textbox the form is submitted.