下拉框:首先在选择的第二个框中显示相关项目 [英] Drop down boxes: show related items in second box on selection in first

查看:83
本文介绍了下拉框:首先在选择的第二个框中显示相关项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i有两个下拉框

在第一个下拉框中选择一个项目

相关项目应该在第二个更改

可以任何一个请建议我解决方案


提前感谢

kash

hi all,
i had two drop down boxes
on the selection of one item in the first drop down box
the related items should be changed in the second one
can any one please suggest me towards the solution

thanks in advance
kash

推荐答案

你可以看到一个类似的线程,其中有3个不同的下拉列表,案例类似。

但无论如何我给你的解决方案这个。


[HTML]< td>< span>行动< / span>< / td>

< td>< select ID = QUOT; COMBO1"名称= QUOT; combo2"大小= QUOT 1 QUOT;类= QUOT;可选"平变化= QUOT; changeCombo2(本);">

< option value =" condition 1"> condition 1< / option>

<选项值="条件2">条件2< /选项>< / select>< / td>


< td>< span>无操作< / span>< / td>

< td>< select id =" combo2"名称= QUOT; combo2"大小= QUOT 1 QUOT;类= QUOT;可选"平变化= QUOT; changeCombo2(本);">

< option value ="条件1">条件1< / option>

< option value ="条件2">条件2< /选项>< / select>< / td> [/ HTML]

You can see a similar threads where there was 3 different dropdown and the case was similar.
But anyways I am giving you the solution for this.

[HTML]<td><span>Action</span></td>
<td><select id="combo1" name="combo2" size="1" class="optional" onchange="changeCombo2(this);">
<option value="condition 1">condition 1</option>
<option value="condition 2">condition 2</option></select></td>

<td><span>No Action</span></td>
<td><select id="combo2" name="combo2" size="1" class="optional" onchange="changeCombo2(this);">
<option value="on condition 1">on condition 1</option>
<option value="on condition 2">on condition 2</option></select></td>[/HTML]

展开 | 选择 | Wrap | 行号


hi thanq

但实际上


元素在第一个组合框应该是常量

例如,如果我将第一个组合框保留为国家,那么我将在第一个组合框中显示国家/地区列表

选择特定国家我需要在第二次下拉中显示该国家下的州


请指导我解决方案


谢谢

kash
hi thanq
but actually

the elements in the first combo box should be constant
for example if i had keep the first combo box as country then i will display the countries list in the first combo box
on selection of particular country i need to display the states under that country in the second drop down

please guide me towards the solution

thank you
kash


大家好

i需要紧急帮助下拉盒


实际上我有两个下拉盒

喜欢国家和州


当我选择一个国家/地区时,相应的状态应该显示在第二个下拉框中,当我选择了一个特定的状态时,应该显示一个表格中的信息


可以任何一个请建议我解决方案

它有点紧急


谢谢
Hi every one
i need urgent help on drop down boxes

actually i had two drop down boxes
like country and states

when i had selected a country then the respective states should be displayed in the second drop down boxes and when i have selected a particular state in that then the info which is present in a table should be displayed

can any one please suggest me towards the solution
its a bit urgent

thank you


这篇关于下拉框:首先在选择的第二个框中显示相关项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆