Dynamically filling in a 3rd value in select pulldowns depending on whats entered in the first 2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • J. Muenchbourg

    Dynamically filling in a 3rd value in select pulldowns depending on whats entered in the first 2



    I have 3 select pulldown boxes where a user will select a year (either
    2002 or 2001), a week (one thru 52), and a database (short data or long
    data). But if a user selects a week that is less than 4, the 3rd select
    pulldown will only show the choice of "short data", as they will not be
    able to select "long data". Is it dynamically possible in javascript to
    program a third pull down in this fashion?

    thx
    Muench

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Dr John Stockton

    #2
    Re: Dynamically filling in a 3rd value in select pulldowns depending on whats entered in the first 2

    JRS: In article <3f259e9a$0$197 $75868355@news. frii.net>, seen in
    news:comp.lang. javascript, J. Muenchbourg <jodaddy@canada .com> posted at
    Mon, 28 Jul 2003 22:07:22 :-
    [color=blue]
    >I have 3 select pulldown boxes where a user will select a year (either
    >2002 or 2001), a week (one thru 52), and a database (short data or long
    >data). But if a user selects a week that is less than 4, the 3rd select
    >pulldown will only show the choice of "short data", as they will not be
    >able to select "long data". Is it dynamically possible in javascript to
    >program a third pull down in this fashion?[/color]

    A general year requires up to 53 weeks, though 2001 & 2002 do not.

    The third pulldown can be adjusted in a manner similar to that used in
    <URL:http://www.merlyn.demo n.co.uk/js-date6.htm#YWD>f or the W pulldown.

    --
    © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
    <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
    <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
    <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.

    Comment

    Working...