如何使用javaScript将数据库中的值分配给下拉列表index(1) [英] how to assign value from database to dropdownlist index(1) using javaScript

查看:56
本文介绍了如何使用javaScript将数据库中的值分配给下拉列表index(1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

如何使用javaScript从数据库中分配用户选择值以下拉列表index(1).


例如:

我有table1,
编号名称
1 arun
2库玛
3亚历克斯
4罗伯特

现在我选择名称"kumar",然后它将在下拉列表中分配索引第0位.
和其他记录都绑定了asusal.使用JavaScript.

发送代码
由mohan.

dear sir,

how to assign user select value from database to drop down list index(1) using javaScript.


example:

i have table1,
id name
1 arun
2 kumar
3 alex
4 Robert

now i choose name ''kumar'' then it ll go and assign index 0th place in drop down list.
and other records all are bind asusal.Using JavaScript.

sent with code
by mohan.

推荐答案

尝试这些
按值设置选定的DropDownList项目 [
Try these
How to Change the Selected Value of a in Javascript[^]
Set Selected DropDownList Item By Value[^]


这篇关于如何使用javaScript将数据库中的值分配给下拉列表index(1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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