简体   繁体   English

我想在一个组合中选择一个值,另一个将在同一页面上填充

[英]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.

相关问题 如何将 json 值转换为键? 基本上我想将一个键的值用作“键”,将另一个键的值用作值 - How to convert json values to keys? Basically I want to use value of one key as a “key” and value of other as value 嗨,我想用 thyleaf 填充 html 的 select 并出现错误 - Hi, I want fill an select of html with thyleaf and appears an Error 我的数据库中有两个表,如果另一个表不是该记录,我想从一个表中选择记录 - I have two table in my database.I want to select record from one table if other table not that record 我有三个复选框,因为连续三列都被选中,但是我想从行中选择一个。 如果选择一个则取消选择 - i have three checkbox as three columns in a row all are get selected but i want to select one from the row. If one is select other to are unselect 我想使用 java 通过相同的 id 一个 id 从 JSON 中提取值 - I want to extract the value from JSON by same id one id using java 我想隐藏一个回收器视图,另一个是滚动的 - I want to hide one recycler view where the other one is scrolled Select 全部相同的 jtable 值一键点击 - Select all Same jtable value in one click 我想从组合框中选择一个项目,然后单击按钮时根据所选项目打开另一个框架 - i want select an item from the combo box and open another frame according to the selected item when I click a button ResponseEntity 重定向到新页面,而我希望它保留在同一页面中 - ResponseEntity redirecting to a new page, while I want it to remain in the same page Java:如何将两个变量设置为相同的值,然后更改一个而不更改另一个? - Java: How do I set two variables to the same value, then change one without changing the other?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM