四
23
2009
FCBKcomplete v 2.02
发布者: seasun想象下Facebook中表单输入框根据前缀值自动提示相关值。如果您有任何意见或要求,请提交给我们,我会努力完成所有的需求并在未来的版本中发布
演示: 演示 FCBKcomplete
语法:
$(“element”).fcbkcomplete({
json_url: “fetched.txt”,
json_cache: true,
filter_case: true,
filter_hide: true,
newel: true
});
json_url – url 获取json对象
json_cache – 通过缓存来处理json
height – 超过多少个元素时显示滚动条
newel - 按元素的方式来显示文本
filter_case - 区分大小写
filter_hide - 显示/隐藏过滤条目
filter_selected -从列表中过滤选择项
complete_text - 文本完成业(text for complete page)
Creditrs for CSS & HTML structure: Guillermo (http://devthought.com)
Updates:
- 2.02 fixed fist element selected bug
* fixed defaultfilter error bug
- 2.01 fixed bugs & added features
* fixed filter bug for preadded items
* focus on the input after selecting tag
* the element removed pressing backspace when the element is selected
* input tag in the control has a border in IE7
* added iterate over each match and apply the plugin separately
* set focus on the input after selecting tag
- 2.00 new version of fcbkcomplete
* replace regular “select” element with new fancy facebook like selector
* multiple elements support