jQuery Editable Combobox 介绍
What is it?
jQuery Editable Combobox is a jQuery function that allows you to transform
any <select> tag into editable combobox.
This is done by adding a new <option> 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.
How to use it?
Just import plugin file after importing the jQuery library and you’re set.
Syntax:
$(elements).editableCombobox([options])
Parameters:
- object options - plugin specific options
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
jQuery Editable Combobox 官网
http://plugins.jquery.com/project/jEC
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。