[英]For a particular selected value from a drop-down box, Display its corresponding values in drop down list?
I have two fields in a webpage. 我在网页中有两个字段。 Both are composite primary keys.
两者都是复合主键。 Out of that when I select one field (eg. out of a list of countries I select - India), the second field should display all the values corresponding to the previous field (eg. after selecting India I should get all the states in another drop-down menu).
除此之外,当我选择一个字段时(例如,从我选择的国家列表中),第二个字段应显示与上一个字段相对应的所有值(例如,选择印度后,我应获取另一个州的所有州)下拉式菜单)。
I'm implementing this using JSP and Ajax. 我正在使用JSP和Ajax实现它。
Can someone please help me with this or send me the code snippets.? 有人可以帮我解决这个问题或向我发送代码段吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.