Facebook的风格JQuery的自动完成插件

Facebook的风格JQuery的自动完成插件

本文介绍了Facebook的风格JQuery的自动完成插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是个插件后做像Facebook自动完成在做,你可以选择多个项目 - 类似于如何标注一个计算器问题工作

Im after a plugin to do autocomplete like facebook does in that you can select multiple items - similar to how tagging a stackoverflow question works.

下面是几个我跑进:





你有没有尝试过这些?难道他们易于实施和定制?

Have you tried any of these? Were they easy to implement and customize?

推荐答案

我刚在这个一来一去,这是很容易使用asp.net页面输出JSON(从搜索PARAMS)来实现
随后的Javascript那里有短短的几行,你需要创建它(和设置)

I just had a go at this one and it was really easy to implement using an asp.net page to output the JSON (from the search params)Then theres just a few lines of Javascript you need to create it (and the settings)

$(document).ready(function() {
        $("#Users").tokenInput("../Services/Job/UnassignedUsers.aspx?p=<%= projectID %>&j=<%= jobID %>", {
        hintText: "Begin typing the user name of the person you wish to assign.",
        noResultsText: "No results",
        searchingText: "Searching..."
    });
});

这篇关于Facebook的风格JQuery的自动完成插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 20:49