Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在另一个下拉列表选择过滤选项后,我需要刷新下拉列表以显示会话值。我该怎么做?
您需要以某种结构化格式表示您选择的值和值的组合。例如
var names = { "Male": ["Byron", "William", "Samuel"], "Female": ["Anne", "Charlotte", "Emily"] }
然后你可以在下面的小提琴中使用这些信息。
http://jsfiddle.net/vYfRX/