PDA

View Full Version : disabeling enters in textarea


ShMiL
03-25-2003, 09:02 PM
I want to replace the enters (break lines) with a blank space when the user press the "enter" button on the <textarea>.
Any idea?

glenngv
03-26-2003, 02:25 AM
why not just use a normal text field? Textarea is a multi-line text field, why would you change that?

ShMiL
03-26-2003, 05:07 AM
Because I have to. I want the user to see all that he writes (100 chars). Normal text field won't do.

glenngv
03-26-2003, 05:40 AM
then set the size to 100

<input type="text" name="txt" size="100">

ShMiL
03-26-2003, 03:11 PM
come on...
Leave the design part to me - I have a JS issue here, don't teach me HTM.
Anyone has any idea?