The NinjaCombo transforms a simple select element into a nice combobox component.
NinjaCombo
REFERENCES
Add those references into your website:
And the plugin files:
Call ninjaCombo method to initialize the plugin:
$(document).ready(function(){ $(".ninjaCombo").ninjaCombo({options}); });
OPTIONS
.ninjaCombo({ showOnlyMatches: false, defaultPlaceholder: "Select", searchPlaceholder: "Search", });
METHODS
Name |
Description |
Sample |
---|---|---|
ninjaCombo() |
Initialize the plugin to the specified selector. |
$("#mySelect").ninjaCombo() |
ninjaComboUpdate() |
Update the plugin when some attributes are changed in original select element. |
$("#mySelect").ninjaComboUpdate() |