分层选择人口的jQuery / PHP [英] Hierarchical select population jQuery/PHP
本文介绍了分层选择人口的jQuery / PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在HTML中有3个选择框,请参阅本演示。
I have 3 select boxes in HTML, see this demo.
会发生什么情况:当一个点击的第一个&其中的一个选项;选择>
,数据应装入第二&LT ;从数据库
;选择&GT。当一个点击的数据,在第二个<选择>
,第三<选择>
应该填充进一步从一个数据库中的数据。
What should happen: when one clicks on one of the options in the first <select>
, data should be loaded into the second <select>
from a database. When one clicks on data in the second <select>
, the third <select>
should be populated with further data from a database.
简单的问题
什么是存储和加载数据以分层方式最好,最简单的方法。像树视图但 &LT;选择&GT;
元素
What is the best and easiest way to store and load the data in a hierarchical fashion. Like a tree view but with <select>
elements.
推荐答案
看看这个的教程
这篇关于分层选择人口的jQuery / PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文