文本框将根据输入的文本显示名称 [英] textbox which will display the names according to the text entering

查看:80
本文介绍了文本框将根据输入的文本显示名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮助我,



i想要使用文本框,根据我输入的文字使用javascript显示名称



(例如:当我们在文本框中输入名称以搜索朋友时,它将根据您输入的文本显示相关名称)

can anyone help me,

i want to use textbox which will display the names according to the text i am entering using javascript

(ex:when we are entering names in textbox to search for friends it will show the related names according to the text you are entering)

推荐答案

您需要使用自动填充文本框。本文展示了一个示例 asp.net中的简单自动填充文本框 [ ^ ]
You need to use an "autocomplete" text box. This article shows an example Simple Autocomplete text box in asp.net[^]


这个 [ ^ ]是一个非常好的jquery示例。它将下拉列表转换为自动完成列表。此外,所选项目可以作为标签添加或删除。只需在页面加载时填充下拉列表,就可以在添加此脚本后完成。
This[^] is a very good jquery example. It converts a dropdownlist into an autocomplete list. Also the selected items can be added or removed as tags. Just populate the dropdownlist on page load and you are done after adding this script.


您好,



试试这些



使用DataBase和AjaxControlToolkit自动完成 [ ^ ]



自动完成演示 [< a href =http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspxtarget =_ blanktitle =New Window> ^ ]



谢谢,

Vamsi
Hi,

Try these

AutoComplete With DataBase and AjaxControlToolkit[^]

AutoComplete Demonstration[^]

Thank you,
Vamsi


这篇关于文本框将根据输入的文本显示名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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