Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with option drop down menus


farberama

Recommended Posts

I need to be able to populate an option drop down menu based on the customer's choice in a different drop down. I'm assuming this has to be done with javascript, but have never had to do it before. Has anyone done this? If so, can you give me any guidance? Thanks in advance.

 

-Bill

Link to comment
Share on other sites

I need to be able to populate an option drop down menu based on the customer's choice in a different drop down.  I'm assuming this has to be done with javascript, but have never had to do it before.  Has anyone done this?  If so, can you give me any guidance?  Thanks in advance.

 

-Bill

 

Hello Bill,

 

I've performed that task before at my day job. There are two ways that you could accomplish it. One would be with Javascript as you suggested. The other would be with PHP, however if you go that route you would need to refresh the page with the onchanged event of the first drop down.

 

I just did a search on dynamically populating a dropdown list with JavaScript and found several examples doing it that way.

 

Be well,

 

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...