¡@

Home 

javascript Programming Glossary: ddl2

Populate one dropdown based on selection in another

http://stackoverflow.com/questions/5686735/populate-one-dropdown-based-on-selection-in-another

type text javascript function configureDropDownLists ddl1 ddl2 var colours new Array 'Black' 'White' 'Blue' var shapes new.. switch ddl1.value case 'Colours' document.getElementById ddl2 .options.length 0 for i 0 i colours.length i createOption.. 0 i colours.length i createOption document.getElementById ddl2 colours i colours i break case 'Shapes' document.getElementById..