dynamic set row count

Discussion in 'Javascript' started by serkanhamarat@gmail.com, Nov 10, 2006.

  1. Guest

    Why this code works
    --------------
    <textarea cols="76" rows="3" wrap="on" name="madde[]"
    onkeypress="this.rows = 5;"></textarea>
    --------------


    but this doesn't works:
    --------------
    <textarea cols="76" rows="3" wrap="on" name="madde[]"
    onkeypress="this.rows = ceil(this.value.length/76);"></textarea>
    --------------
     
    , Nov 10, 2006
    #1
    1. Advertising

  2. Guest

    I got it quicker than I expected..

    "ceil()" not defined. I wrote "Math.ceil()"
     
    , Nov 10, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin
    Replies:
    2
    Views:
    9,232
    Kevin
    Dec 18, 2003
  2. Praveen Balanagendra via .NET 247
    Replies:
    2
    Views:
    4,136
  3. =?Utf-8?B?SSBhbSBTYW0=?=

    Child Row Count

    =?Utf-8?B?SSBhbSBTYW0=?=, Mar 20, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    751
    =?Utf-8?B?SSBhbSBTYW0=?=
    Mar 20, 2005
  4. efelnavarro09
    Replies:
    2
    Views:
    978
    efelnavarro09
    Jan 26, 2011
  5. D
    Replies:
    0
    Views:
    256
Loading...

Share This Page