Log in

View Full Version : non-wrapping textarea



kosi
03-20-2007, 02:09 AM
This is probably the simplest thing in the world to somebody out there, but is there a way to make a textarea that doesn't wordwrap unless the user hits "enter" or "return"? Thanks.

codeexploiter
03-20-2007, 03:31 AM
If you don't want to wrap your text inside a text area you can use something like the following


<textarea name="test" cols="35" rows="10" wrap="off" dir="ltr"></textarea>

In other words make the "wrap" attribute of <textarea> tag to "off"

regards