根据textbox1中输入的值填写下一个文本框 [英] Fill the next textboxes as per the values entered in textbox1

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

问题描述



我需要使用jQuery并完成以下任务,请帮我解决这个问题,

当我在textbox1中输入数字或数字时,相关数据将从DB(SQL Server)中获取并填充到其旁边的文本框(数据)中.

例如:

如果用户在文本框中输入学生ID 10,则需要在其旁边的文本框中自动填写学生的姓名,地址.现在,我正在使用text_Change事件来解决此问题,并且它可以正常工作.我本来想在jQuery中使用自动完成功能来完成此操作,但是当我输入数字10时,我会显示以10开头的数字,因此我需要从列表中进行选择,因此该选项不适合我.

因此,请教我如何完成此操作.尽快...

Hi,

I need to use jQuery and complete the below task kindly help me to solve this,

When I enter a number or digit in textbox1 the relevant data would be fetched from the DB (SQL Server) and filled into the text box(data) next to it.

For example:

If the user enters a student''s id 10 into the textbox the student''s name,address need to be filled automatically into the textbox next to it. Right now I am using text_Change event to solve this and it works. I thought to do this with auto complete in jQuery, but when I enter the number 10, I would display number starting with 10 and I need to select from the list so this option won''t suit me.

So kindly advice me how to complete this. ASAP...

Thanks in advance!

推荐答案

^ ]
希望以上信息对您有所帮助.如果您还有其他顾虑,请告诉我.
http://af-design.com/blog/2010/05/12/using-jquery-uis-autocomplete-to-populate-a-form/[^]
I hope the above information will be helpful. If you have more concerns, please let me know.


这篇关于根据textbox1中输入的值填写下一个文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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