Mozilla only half working

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

    Mozilla only half working

    I have a form where you first select a state. The next step is to
    choose a county. Since I don't know what counties to show until the
    state is selected I am building the county menu with innerHTML.

    I use PHP to build the if statements when the page is first loaded.
    When the person selects a State the onChange triggers a fundtion that
    looks to see the value of what was slected then goes through a list of
    if statements to decide which menu to draw.

    The menu draws fine in both IE and Mozilla, but when validating
    Mozilla still sees the menu that was drawn when the page was
    originally loaded.

    Whats a good way to get this to work in both?

    Thanks
  • knocte

    #2
    Re: Mozilla only half working

    cwj escribió:[color=blue]
    > I have a form where you first select a state. The next step is to
    > choose a county. Since I don't know what counties to show until the
    > state is selected I am building the county menu with innerHTML.
    >
    > I use PHP to build the if statements when the page is first loaded.
    > When the person selects a State the onChange triggers a fundtion that
    > looks to see the value of what was slected then goes through a list of
    > if statements to decide which menu to draw.
    >
    > The menu draws fine in both IE and Mozilla, but when validating
    > Mozilla still sees the menu that was drawn when the page was
    > originally loaded.
    >
    > Whats a good way to get this to work in both?
    >
    > Thanks[/color]

    You shouldn't use JS scripts as a required technology for your page.

    Try to make it work without JavaScript, and then improve the form
    functionality with JavaScript.

    Regards,

    knocte

    Comment

    Working...