Results 1 to 2 of 2

Thread: non-wrapping textarea

  1. #1
    Join Date
    May 2006
    Location
    New York City
    Posts
    77
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default non-wrapping textarea

    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.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    If you don't want to wrap your text inside a text area you can use something like the following

    Code:
    <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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •