Return to Snippet

Revision: 15468
at July 7, 2009 01:41 by loungerdork


Initial Code
var dropdown = document.getElementById('myDropdown');
var index = dropdown.selectedIndex;
var value = dropdown[index].value;

Initial URL

                                

Initial Description

                                

Initial Title
Get selected value from HTML dropdown

Initial Tags
dropdown

Initial Language
JavaScript