Jump to content

textarea move to next row

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
yonghan

yonghan

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
Hi all,is it possible to automatically make textarea lines move to next rows without user press enter key first?Like this editor..If it reach the end of the cols,it will create a new line...Is it possible to use css??Thanks a lot...

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I suspect you would need JavaScript for that.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Do you actually want a new line or for the text to wrap? This editor just wraps the text. You can wrap a textarea using the WRAP attribute, like this:


<TEXTAREA NAME="SOFT" COLS=25 ROWS=5 WRAP=SOFT>



#4
yonghan

yonghan

    Learning Programmer

  • Members
  • PipPipPip
  • 99 posts
Does it works for all kind of browsers?Is it that if i use wrap=soft,then i don't have to press enter to move to next row?Thanks a lot Jordan...