Single Select Multiple Select Hide Search on Single Select The disable_search_threshold option can be specified to hide the search input on single selects if there are n or fewer options. Default Text Support Chosen automatically sets the default field text ("Choose a country... ") by reading the select element's data-placeholder value. Note: on single selects, the first element is assumed to be selected by the browser.
The Sample Application You can run the application here. Twitter Bootstrap highlights Backbone.js highlights One-to-Many association. Extensions, Plugins, Resources · documentcloud/backbone Wiki. Dependencies Underscore.js Backbone's only hard dependency. JSON2.js Needed if you'd like to parse and serialize JSON in older browsers (read: "Internet Explorer") jQuery Recommended for DOM manipulation and Ajax. Lo-Dash A performance-minded Underscore alternative with customs builds and additional features. Zepto A jQuery alternative for mobile apps NB: Zepto isn't fully compatible with jQuery, use at your own risk Backbone.Native A tiny drop-in replacement for jQuery to allow Backbone to work while relying on only native DOM APIs. Exoskeleton A faster and leaner Backbone for your HTML5 apps. Backbone fork with 100% optional dependencies, speed improvements and other enhancements. Development Tools Backbone Eye A Firebug extension to debug Backbone based applications running off web-browsers.
Understanding the Model View Controller Paradigm I have used many frameworks which promote that they use MVC. Getting started <! Setting up the main view. 1.js.