Place your message here

Your Guide to Professional
Web Site Design and Development

Web Development
HTML Codes
HTML Tips
Javascript Snippets
216 Safe Colors
Symbols
Web Directory
Web Resources
Internet Channels

Web Development: Business, Advertising, Internet Marketing, Promotion and Web Site Design

Monday, March 31, 2025

| Web Development | HTML Codes | HTML Tips | Javascript Snippets | 216 Safe Colors | Symbols | Recommendations |

Changing HTML Dropdown Box Content On-the-Fly (Without Reloading the Web Page)

By William Bontrager

You've seen web pages with two dropdown lists where making a selection in one causes the web page to reload. Once reloaded, the list in the other dropdown has changed.

This article is about changing the contents of the second dropdown list — but without reloading the web page.

It's done with JavaScript.

Now that page reloads aren't necessary, the content of dropdown lists can be changed on-the-fly without annoying visitors and potential customers in that way.

The demonstration (link below) contains an example of a primary dropdown list changing the content of a secondary dropdown list. These two dropdowns are meant to be put into various types of forms, although they might also be used by themselves.

The dual dropdowns could be used as a site navigation aid. The primary dropdown could have the main sections of a web site as selections. When a selection is made, the secondary dropdown list content is changed to contain subsections. For example, "Books" might cause the secondary dropdown to contain a list of genres.

The technique might be used on an e-commerce site where sub-selections are necessary. For example, size 12 shirts might come in colors red and blue, and size 10 come in red, blue, yellow, and white. The size selection of the primary dropdown would change the color selections within the secondary dropdown.

When playing with the demonstration, you'll undoubtedly see potential for your web sites, maybe immediate applications. It's at http://willmaster.com/a/24t/pl.pl?art244

The above demonstration page has a download link for a ZIP file of code and instructions.

Now, you can have a dynamic dropdown list without annoying visitors with page reloads.

Will Bontrager

Copyright 2004 Bontrager Connection, LLC

About the Author:

William Bontrager Programmer/Publisher, "WillMaster Possibilities" ezine mailto:possibilities@willmaster.com

Are you looking for top quality scripts? Visit Willmaster and check out his highly acclaimed Master Series scripts. Some free, some for a fee.


eTips Member Login

Enter your email address and password to enter the private membership area:
Email:
Password:

Lost Password?

Email:

Not yet a member?

Click here to see what you're missing! Club members receive access to dozens of free video tutorials, utilities and ebooks.

Our Products


Web Design Mastery
Mastering Web Hosting
eBook Starter

Our Other Sites


ShelleyLowery.com
Web Design Mastery
Learn How to Make a Web Page
Make My Own Website Guide
Email Newsletter Service
Mastering Web Hosting
eBook Starter
Raging Hearts
Online Forex Trading For Beginners
Beginners Real Estate Investing

Partner Sites


Site Build It!
Web Site Templates

Web Site Design


HTML Tips
PC Security
CSS Tutorial
HTML Codes
Web Design Tips
JavaScript Codes
JavaScript Tutorial
Java Applet Tutorial
216 Web Safe Colors
Web Site Development
ASCII Character Codes

Web Site Tools


Domain Search
Format Your Text
Create Meta Tags
Text to HTML Converter
Color Code Converter
CSS Generator
Bookmark Site Generator
Button Generator
Rollover Button Generator
Rollover Text Button Generator
Colored Scrollbar Generator
Table Generator
Article Syndication
Free Classified Ads

Follow Us




Daily News For
Webmasters

Back


| Web Site Development | HTML Codes | HTML Tips | Javascript Snippets |
| Web Resources | 216 Safe Colors | Symbols | Web Development Strategies |
| FeedBack | About | Privacy Policy | Terms and Conditions | Site Map | Affiliate Program |


Web-Source.net http://www.web-source.net
Your Guide to Professional Web Site Design and Development
Hosted with Host4Profit.
Copyright © 1997-2025 Brajusta Publishing, Inc., All Rights Reserved