Any ideas how to do this with DIV, FORM INPUT,...print characters...

Discussion in 'Javascript' started by endlesstide@gmail.com, Apr 12, 2006.

  1. Guest

    How do you create a text input where every 10 characters inputted, it
    prints a dash "-" in a DIV tag area?
    , Apr 12, 2006
    #1
    1. Advertising

  2. Ian Collins Guest

    wrote:
    > How do you create a text input where every 10 characters inputted, it
    > prints a dash "-" in a DIV tag area?
    >

    Homework?

    --
    Ian Collins.
    Ian Collins, Apr 12, 2006
    #2
    1. Advertising

  3. Hal Rosser Guest

    <> wrote in message
    news:...
    > How do you create a text input where every 10 characters inputted, it
    > prints a dash "-" in a DIV tag area?
    >


    Try using the onkeypress event.
    append a dash when (*length* of the string minus the number of dashes
    already in the string ) % 10 ==0
    Tell the boss to fax me some superbowl tickets if it works.
    Hal
    Hal Rosser, Apr 15, 2006
    #3
    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. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    743
  2. VK

    Strange form request - Ideas or input requested

    VK, Feb 22, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    116
    MasterGaurav
    Feb 25, 2005
  3. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    185
    David Dorward
    Jun 1, 2005
  4. mscir
    Replies:
    3
    Views:
    307
    Martin Honnen
    Jun 26, 2005
  5. ShutterMan

    Input hidden value not changing..any ideas?

    ShutterMan, Apr 20, 2009, in forum: Javascript
    Replies:
    4
    Views:
    149
    Thomas 'PointedEars' Lahn
    Apr 20, 2009
Loading...

Share This Page