jQuery:根据另一个组合框加载数据 [英] jQuery: Load data on a combo box depending on another
本文介绍了jQuery:根据另一个组合框加载数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个组合框。
让我们说第一个有值A,B,C
Let's say the first one had values A, B, C
当我选择A时,第二个应该显示选项1,2和3
And when I select A the second one should show me options 1, 2, and 3
如果我选择B,那么第二个应该有选项4,5 ,和6
If I select B, then the second one should have the options 4, 5, and 6
和C应该使第二个组合框有选项96,98,100。
and C should make the second combo box have the options 96, 98, 100.
有没有办法通过jQuery做到这一点?
非常感谢!
Is there a way to do this via jQuery?? Thank you very much!
推荐答案
http://www.ajaxray.com/blog/2007/11/08/jquery- controlled-dependent-or-cascading-select-list-2 /
这篇关于jQuery:根据另一个组合框加载数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文