Mozilla only half working

C

cwj

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
 
K

knocte

cwj escribió:
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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top