PHP Classes

How to create two related dropdown list boxes: Link a second dropdown list box with the first one

Recommend this page to a friend!
  All requests RSS feed  >  How to create two related dropdown li...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

How to create two related dropdown list boxes

Edit

Picture of Prama Pakwan by Prama Pakwan - 7 years ago (2015-04-16)

Link a second dropdown list box with the first one

This request is clear and relevant.
This request is not clear or is not relevant.

+2

There are two dropdown list boxes in my form.

I need to show options in the second dropdown automatically based on the selected option of first dropdown list box.

Ask clarification

1 Recommendation

Cascade Select: Generate two dependent HTML form select inputs

This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Dave Smith by Dave Smith Reputation 6845 - 7 years ago (2015-04-19) Comment

What you are looking to accomplish is called cascading selects. Here is one class that can show you how to do it.


Recommend package
: 
: 
For more information send a message to info at phpclasses dot org.