Dumb question about using a <SELECT> menu to change the state of<SELECT> menu... - Javascript

This is a discussion on Dumb question about using a <SELECT> menu to change the state of<SELECT> menu... - Javascript ; This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the &lt;SELECT? Pull-downs. Lets say I have ...

+ Reply to Thread
Results 1 to 3 of 3

Dumb question about using a <SELECT> menu to change the state of<SELECT> menu...

  1. Default Dumb question about using a <SELECT> menu to change the state of<SELECT> menu...

    This has got to be obvious, but I can't make it work.

    I have a form called with 3 pull down menus. They are linked to a database
    which generates the values for the <SELECT? Pull-downs.

    Lets say I have values selected for all three pull down menus.

    When I change the first "top-level" menu I want to reset both the second and
    third menus to the "default" state.

    I thought this would be easy with some javascript on the pull down in
    question like:

    <select name="category" onchange="document.forms.form_field.options[0];">

    So when I change category I reset my sub-categories and sub-sub-categories
    back to NULL to avoid duff queries being made.

    I've tried any number of iterations, but it still won't work.

    Please put me out of my misery?

    TIA.


  2. Default Re: Dumb question about using a <SELECT> menu to change the state of <SELECT> menu...

    <select name="category"
    onchange="this.form.formfield2.selectedIndex=0;this.form.formfield3.selectedIndex=0;">

    Joe Potenza
    Lead Developer
    Bigbuzz Internet Business Solutions
    joe@bigbuzz.com


  3. Default Re: Dumb question about using a <SELECT> menu to change the stateof <SELECT> menu...

    On 25/4/05 9:46 pm, in article
    1114462012.984106.292710@o13g2000cwo.googlegroups.com, "bigjoepo"
    <bigjoepo> wrote:

    > <select name="category"
    > onchange="this.form.formfield2.selectedIndex=0;this.form.formfield3.selectedIn
    > dex=0;">


    Thank you!


+ Reply to Thread

Similar Threads

  1. How to select "Classic Start Menu" via WMI/API
    By Application Development in forum CSharp
    Replies: 0
    Last Post: 11-27-2007, 11:11 PM
  2. About Handling the Html:Select Box State when submitted to other page
    By Application Development in forum Javascript
    Replies: 1
    Last Post: 05-14-2007, 08:14 AM
  3. Select from drop down menu multipel times in the same form
    By Application Development in forum Perl
    Replies: 7
    Last Post: 05-07-2007, 07:13 PM
  4. Interesting SQL query requirement for <SELECT> menu
    By Application Development in forum Inetserver
    Replies: 2
    Last Post: 11-08-2005, 05:46 AM
  5. dropdown menu with <SELECT>
    By Application Development in forum Javascript
    Replies: 0
    Last Post: 04-01-2005, 07:55 AM