Select / CollectionView Backbone example
✓ Published0🌍 Public
Aakre54
Last edited Oct 30, 2013
Created on Oct 29, 2013
A Backbone.js example demonstrates how a dropdown select and a list view stay synchronized through model collections. The page shows a `<select>` element populated with items from a Backbone Collection, while a second collection drives an adjacent `<ul>` list. Selecting an option triggers a `change` event, adding the chosen model to the other collection, which re-renders the list via the `add` event listener. The code uses Backbone Views, Collections, and the `listenTo` API, with jQuery handling DOM updates and event binding.
AI-generated description