Print Page | Close Window

Dynamic Drop Down Menus

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21694
Printed Date: 28 March 2026 at 11:46pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Dynamic Drop Down Menus
Posted By: pjb007
Subject: Dynamic Drop Down Menus
Date Posted: 23 October 2006 at 9:30pm
Can anyone help part of a form I am using will use 2 drop down menus, the first looks like this (just removed a few option value lines for this example)


<select name="area" id="area">
  <option value="en">England</option>
  <option value="cy">Wales</option>
  <option value="sc">Scotland</option>
</select>


How do I code the second dropdown menu to that only relevant options are available.

For example if England is selected it won't list places in Wales or Scotland.



Replies:
Posted By: dpyers
Date Posted: 24 October 2006 at 12:43am
There's a couple of ways to do it depending upon if you want to make a trip back to the server or download all possible data combinations up front.

A google for "cascading selects" will turn up a few methods for doing it either way.


-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net