www.webdeveloper.com
Results 1 to 4 of 4

Thread: Copy First Character...

  1. #1
    Join Date
    Apr 2005
    Posts
    32

    Copy First Character...

    How can I copy the first character typed into a form field to another form field?

  2. #2
    Join Date
    Apr 2005
    Posts
    32

    Nevermind...

    I figured it out.
    .
    .
    .
    .
    document.form.field.value.charAt(0)

  3. #3
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    or
    document.form.field.value.substring(0,1)

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    or
    document.form.field.value.match(/./)
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles