从数据库填充文本框 [英] populating textbox from database

查看:89
本文介绍了从数据库填充文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文本框.
一个文本框具有jQuery Autocomplete.
当我从第一个文本框中选择名称时,应通过数据库中的地址填充其他文本框.
请帮帮我.

i have two textboxes.
one textbox has jQuery Autocomplete.
when i select name from 1st textbox other textbox should be populated by address which is in database.
please help me out.

推荐答案

那是什么问题?

步骤:
1.根据第一个文本框中的文本,向服务器发送AJAX请求.
2.使用AJAX请求中提供的文本搜索DB
3.将搜索结果发送回客户端
4.根据收到的搜索结果更新用户界面-在此处填充第二个文本框.

试试吧!
So what is the issue?

Steps:
1. Based on the text in first textbox, send an AJAX request with to the server.
2. Search DB using the text came in AJAX request
3. Send back the search result to client
4. Update UI based on the search result received - here populate second textbox.

Try!


这篇关于从数据库填充文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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