jQuery Editable Combobox
本文导语: What is it? jQuery Editable Combobox is a jQuery function that allows you to transform any tag into editable combobox.This is done by adding a new element to carry the value entered by the keyboard. This will only work on select elements. Any other elements this function will be applied to will ...
jQuery Editable Combobox is a jQuery function that allows you to transform any tag into editable combobox.
This is done by adding a new element to carry the value entered by the keyboard. This will only work on select elements. Any other elements this function will be applied to will be ignored.
Just import plugin file after importing the jQuery library and you're set.
Syntax:$(elements).editableCombobox([options])
Parameters:- object options - plugin specific options
- int position - index of editable option to be inserted in select (default 0)
- string|array classes - additional CSS classes to be added to editable option element (default '')
- object styles - additional CSS properties to be set for editable option element (default '')
- string pluginClass - name of plugin class, should be overwritten only if default plugin class is in use (default: 'jecEditableOption')
- array ignoredKeys - ignored keycodes
- array acceptedRanges - accepted key ranges