SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    winter is around the corner Tomer's Avatar
    Join Date
    Jul 2005
    Location
    Israel
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Inserting text into text field

    Hey,

    I'm developing a eCommerce script, and after the user writes the billing address, I want the options for him to check a box and the shipping address will be filled with the billing info, the same info.

    How would I do that, I know it's possible with javascript.

    Thanks!
    - Tomer

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think it was
    document.getElementById("your textbox id").value = "what ever text you want";

  3. #3
    winter is around the corner Tomer's Avatar
    Join Date
    Jul 2005
    Location
    Israel
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I got it, I first made a javascript function in the HEAD area, then called it.

    document.formName.textInputName.value = 'whatever'

    - Tomer


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
  •