Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.