zurb/foundation — pull request #124 by sbarre (2011-11-25 21:24:33+00:00)
Title: Changes to custom select dropdown to better sync with native element changes

Added two-way sync between native select form element and custom drop-drown markup.

If the native select is modified through code (and the "change" event is triggered as well - I don't think there is a way for this to happen automatically), the custom drop-down markup will refresh, re-populating the options and re-sizing as needed.

This is useful (to me at least!) in a scenario where a page action (such as selecting a country from one drop-down) causes the option list of another drop-down to change (populate with appropriate states/provinces).

Hopefully this is useful for others too..