如何激活或停用下拉列表,并从mysql数据库中填充数据? [英] How to activate or deactivate dropdown list, and populate the data from mysql database?

查看:137
本文介绍了如何激活或停用下拉列表,并从mysql数据库中填充数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,这是saurabh,

我在激活一系列下拉列表时遇到问题..例如,假设我一个接一个地安装了四个下拉列表,那么我想仅在选择第一个下拉列表中的值时才激活第二个下拉列表对于第三和第四,我也想从mysql数据库中填充数据并将其放在下拉列表中.

有关我想要的内容的信息,请访问 http://www.famecinemas.com/ [

Hey guys this is saurabh here,

I am stuck with a problem with activating a series of drop down list.... for example suppose I have 4 dropdown list mounted one after the other, I want to activate the second dropdown only if a value in the first is selected, similarly for the 3rd and fourth, also I want to populate the data from a mysql database and put it inside the dropdown list.

For reference of what I want ..please visit http://www.famecinemas.com/[^]
The online booking module on the right side is the module code I want.


thanks in advance :D
MAIL me: [Email id removed]

推荐答案

您正在查看的是级联下拉列表.
Google也可以尝试.

在内部,其他下拉列表是根据上一个下拉列表填充的.通常,使用AJAX是为了与服务器进行对话并获取数据并通过下拉列表进行绑定.
You you are looking at is Cascading dropdown.
Google for same and try out.

Internally, other dropdown is populated based on previous one. Generally, AJAX is used in order to talk to server and get the data and bind with dropdown.


这篇关于如何激活或停用下拉列表,并从mysql数据库中填充数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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