Created
January 24, 2011 04:45
-
-
Save walterdavis/792846 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var counties = new Element('select',{size:1,name:'counties'}); | |
counties.options[0] = new Option('Choose a county','',true, false); | |
$H(data).keys().each(function(key){ | |
counties.options[counties.options.length] = new Option(key, key, false, false); | |
}); | |
$('someDivOnYourPage').insert(counties); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment