views:

86

answers:

3

Is it possible to create a multi-line text-input field? I need something that works as a textarea (with line-wrap) but without being able to 'return' to the next line. Or should i create a textarea and disable the enter-button?

+2  A: 

You can't do it without javascript. Check the second demo textarea in this tutorial, it does what you need.

rogeriopvl
+2  A: 

Go ahead with the last option, I think it's the better path.

jerjer
A: 

Two simple constraints; text boxes can't have line returns & text areas can! You'll have to use a text area and handle "hard" returns either on the client using JS or the server using whatever language you're on. Just remember any client side parsing should be complimented on the server side if data integrity is important.

Troy Hunt