格式ajax响应 [英] formmation ajax responed

查看:104
本文介绍了格式ajax响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在输入元素中键入一个字符串,然后每按一次键,我就调用ajax来接收一个字符串,这些字符串代表了一系列选项,我想在输入内容的下拉列表中输入要键入我的字符串的位置.就像Google的作品一样-某人开始写作,每次按键时,他都会在键入的地方收到选项undwe.我该怎么做? tnx.

im typing a string in a input elemnt and on each key press i calling ajax to receive a string represent a list of options which i would like to insert to a drop down from the input element where im typing my string. its like google works - someone start writing and on each key click, he receives options undwe where he types. how can i do it? tnx.

推荐答案

我不建议您重新发明轮子.您是否尝试过jQuery UI?

http://jqueryui.com/demos/autocomplete/ [
I wouldn''t recommend reinventing the wheel. Have you tried jQuery UI?

http://jqueryui.com/demos/autocomplete/[^]

Several samples for you to work through there, including remote data sources.

Cheers.


这篇关于格式ajax响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆