Results 1 to 3 of 3

Thread: Dynamically Changing Selectbox

  1. #1

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Cool Dynamically Changing Selectbox

    I have two select boxes. One is just like a combo box and the other has a set size. Now what I want to do is have the user select the first box, and then the choices in the second box will change depending on which choice is made in the first box (if that makes sense).

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Addicted Member TheGoldenShogun's Avatar
    Join Date
    Mar 2001
    Location
    VA/MD... anywhere around the beltway
    Posts
    236

    Cool

    Hey thanks, that did help but I'm running into some other errors.

    Changing the text works if the Option already exists, is there a way I can like, add item depending on how big my list is? I'm doing this.

    activeFields.options[0].value = "valTest";
    activeFields.options[0].text = "txtTest";
    alert ("text=" + activeFields.option[0].text)

    and that works unless I change it so that active fields doesn't have any initial options. is there a snippet of code that will let me add options as needed to a select list?

Posting Permissions

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



Click Here to Expand Forum to Full Width