gsamaras gsamaras - 1 year ago 69
Javascript Question

Prevent enter from entering textarea

I want to allow the user to press enter and save the text
of the textarea, but I want the newline NOT to get applied in the text
of the textarea. Is that possible?

Here is my jsFiddle.


just seems to be not enough!

Answer Source

You'we missed return false;.

Try here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download