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.
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.
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).
argh, it was my dodgy coding!
I had <input type="textarea" ... />
instead of
<textarea ... ></textarea>
:o
Mostly harmless.
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.
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.