Related Selects

A very popular question is how to have the selection of an item in one drop-down box automatically populate another drop-down box without refreshing the page. The answer is JavaScript! Using arrays, you can have your second select box be dependent on the first one. Keep in mind, though, that all the data loads when the page loads and lengthy recordsets could mean a longer download time.

The following example will show each area code for a state. When you select a different state, the contents of the Area Code box will automatically change as well.

State Area Code

Join Our E-Mail Newsletter

For Email Newsletters you can trust

Sister Sites

RiteTech LLC
Modern HOA