JamieAppleseed/selectToAutocomplete — pull request #46 by lucasgonze (2012-11-17 00:42:32+00:00)
Title: server side code

Hi Jamie,

Your library is ultra useful.

One problem - inserting the HTML into your document. I could copy and paste your example HTML, but then I would have two problems.

Problem one - if you do any maintenance on your list, such as when a country renames itself, my version gets out of sync. Better to have the country list be in a shared public repo.

Problem two - setting the default selection in the list requires some new code by people using the country list. Better to have that code to create the selection come with the library.

I created a Node.js package to do both of those and added it to a clone of your repo so that this code can be updated and maintained in a single bundle. That's what this pull request is.