At the moment I have a combo box. In my appservice, I query my database and grab top ten.
<select id="StationSelectionCombobox"
name="Country"
ng-options="s.amenityUID as s.amenityName for s in vm.nearbyStations"
ng-model="vm.stations[$index].amenityUID"
ng-change="vm.updateStation($index)"
class="form-control bs-select drop-down"
ui-jq="selectpicker">
<option value="">@L("NotSelected")</option>
</select>
I am looking to update the model on the fly as characters are entered. May I ask how abouts should I do that, or if this is even capable with this control.
Combo boxes are not native to HTML4 or AngularJS. They require a third-party library or a custom directive.
Consider using these libraries:
ng-model, and validation directives such asng-required.Using
<datalist>element as a combo boxHTML5 has the
<datalist>element which can act as a combobox:For more information, see
<datalist>element