SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with dynamic form and Arrays

    Hello,

    If I have an array like:

    secondGroup[1][1][1] = new Option("Name","Name");
    secondGroup[2][1][1] = new Option("Age","Age");

    thirdGroup[1][1][1][1] = 'jim';



    How do I print 'jim' into a text field when Name is selected from the
    secondGroup drop down menu?

    Thanks in advance!

    Jim

  2. #2
    SitePoint Addict
    Join Date
    Aug 2001
    Location
    Los Angeles, CA
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <Script language="JavaScript">
    function printJim()
    {
    window.document.formName.textboxName.value = 'jim';
    }

    <option value="Name" onSelect="printJim()">

    Does that help?


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
  •