jQuery Editable Combobox

联合创作 · 2023-10-02 11:42

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
浏览 8
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报