[英]I want on select value in one combo the other will fill on same page
I Have two combo box And I want on select value in one combo the other will fill on same page and the value come from database in both combos. 我有两个组合框,并且我想在一个组合中选择值,另一个组合将填充在同一页面上,并且该值来自两个组合中的数据库。
any idea 任何想法
Thanks 谢谢
Use JavaScript, preferably jQuery. 使用JavaScript,最好使用jQuery。
When the first value is selected, make an AJAX call to get the second value based on the selection. 选择第一个值后,请进行AJAX调用以根据选择获得第二个值。 When the callback returns, fill in the second UI element.
当回调返回时,填写第二个UI元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.