Jump to content

Chaning menu items without loading the page


halm1985

Recommended Posts

Using php for designing my site

 

I have 2 dynamic drop down menus ..

 

One for the country

The second for newpapers

 

The two are linked in the database using country_id in news papers table

 

I want the NEWSPAPERS menu change automatically to display only newspapers of the selected country in the COUNTRIES menu

 

Does Javascript have the solution for this ?

that's actually tougher then it seems. you can load all the data in javascript arrays one array for countries the other array for newspapers.

 

try looking for "chained selected javascript" in google you might find something.

There is also the ajax way which is not for beginners

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.