-
- 460 Posts
I have textarea’s which submit the form when the return button is pressed, instead of going to a new line! I’d much rather the form button being pressed.
Mostly harmless.
-
- 24,544 Posts
-
- 460 Posts
Yeah, I’d found this and test but from memory it disables return completely so I can’t use returns in the textarea.
Mostly harmless.
-
- 24,544 Posts
Quote from: hotdiggity at Apr 30, 2009, 11:05 PM
Yeah, I’d found this and test but from memory it disables return completely so I can’t use returns in the textarea.
I think it only disables it in input fields. It should still work in a textarea (though I haven’t tried it).
-
- 460 Posts
argh, it was my dodgy coding!
I had <input type="textarea" ... />
instead of
<textarea ... ></textarea>
:o
Mostly harmless.
-
- 1 Posts
I have textarea's which submit the form when the return button is pressed, instead of going to a new line! I'd much rather the form button being pressed.
-
- 932 Posts
As above it sounds like more of a coding issue, textareas by themselves should allow you to press enter without the browser submitting the form. If you can post your code here we can try and debug it for you.