Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple Drop Downs

    What do I need to put where the red is to make this work?

    Code:
    lists['January and March']    = new Array();
    lists['January and March'][0] = new Array(
    	'01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31'
    );
    lists['January and March'][1] = new Array(
    
    );
    I am creating an array so that when the dropdown is used on month that is January or March the next drop down has 31 choices if you choose February then it would be only 29 as well leapyear and all

    Or if someone has a good Javascript that does this that is small in size?

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Posts
    596
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    51° 03' -78" N -114° 05' 72" W
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!

    I also found one that works great to what I needed

    http://javascriptkit.com/script/scri...ateform2.shtml

    lol figures I posted to quick but I would still like to know what you would put in the red to make the above work

  • #4
    Regular Coder
    Join Date
    Apr 2003
    Location
    Atlanta, GA
    Posts
    487
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [edited to remove wrong answer]


  •  

    Posting Permissions

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