English 中文(简体)
j Query Autocomplete/predicte - 如同 go角
原标题:jQuery Autocomplete/predict - like google

我期待着建立一个类似于使用 j子的 go角的搜索功能。 然而,我不知道其中一个特征的名称。

所涉内容是案文预测内容。

例如。 如果我在投入箱“Jquery”中显示这种分类是我的投入,而后是灰色,那么它就增加了第一个结果的案文,从而增加了投入箱,并使用户能够选择这一“预测值”。

我以这一功能和工作榜样的名义搜索了很高和低点。

非常感谢任何帮助。

最佳回答

你正在寻找一个汽车完整的特征。 j 贵重金心中包含一个繁多的汽车功能。

http://jqueryui.com/demos/autocomplete/"rel=“noretinger”> http://jqueryui.com/demos/autocomplete/

The result of your search you can get from an array or a database table (thru a server page).It is quite simple to set up as below

以下实例是将一个阵列作为汽车建议物品的数据来源。

$(function() {
        var availableTags = [
            "ActionScript",
            "AppleScript",
            "Asp",
            "BASIC",
            "C",
            "C++",
            "Clojure",
            "COBOL",
            "ColdFusion",
            "Erlang",
            "Fortran",
            "Groovy",
            "Haskell",
            "Java",
            "Scheme"
        ];
        $( "#tags" ).autocomplete({
            source: availableTags
        });

以上法典对文本箱进行“标签”对汽车功能。 我们提到,来源价值是我们储存不同节目语言名称的阵列名称。

最重要的是,你可能需要从数据库中获取数据,然后使用中间服务器网页作为数据来源。 该服务器网页将从数据存取层获取数据,并给你结果。

$( "#tags" ).autocomplete({
            source: "searchtags.php",
            minLength: 2,
            select: function( event, ui ) {
                log( ui.item ?
                    "Selected: " + ui.item.value + " aka " + ui.item.id :
                    "Nothing selected, input was " + this.value );
            }
        });
问题回答

你们的眼光是汽车粉碎。 有几个,但官员是:。 和法典:

$("#example").autocomplete(data);




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签