danielfarrell/bootstrap-combobox — pull request #20 by wizardapps (2012-07-09 18:04:17+00:00)
Title: Allow for custom-entered choices to be used in the combo box

While this may not be ideal in all cases, I needed a combo box that allowed for custom text to be input into it.

Original Behavior
=========
Entering custom text into the combo box results in the combo box clearing the new input. This is because the combo box only allows for users to type any of the results already in the original `select` box.

New Behavior
=========
Entering custom text into the combo box results in the text *staying*. In addition, this custom value is submitted in the form.

Method
=========
The name from the original `select` is extracted, and given to the new `input` field in the combo box. The `select`'s name is then removed. This results in the correct value being submitted in the form. The behavior where the `input` is cleared if a pre-defined value is not entered (i.e. "Washington" is entered into your demo) is removed as well, to allow for custom text to be entered.

I figure this may be useful for some people, though it may not entirely fit with the goals of this combo box. Alternatively, instead of merging this patch into danielfarrells's combo box, I can maintain a separate repository with these changes for those people that want this functionality.