I have two HTML select
boxes.(我有两个HTML select
框。)
I need to reset one select
box when I make a selection in another.(当我在另一个选区中进行select
时,我需要重置一个select
框。)
<select id="name" >
<option value="">select all</option>
<option value="1">Text 1</option>
<option value="2">Text 2</option>
<option value="3">Text 3</option>
</select>
<select id="name2" >
<option value="">select all</option>
<option value="1">Text 1</option>
<option value="2">Text 2</option>
<option value="3">Text 3</option>
</select>
When I select an option of the first select
(ie id="name"
), I need to reset the second select
to select all
;(当我选择第一选项select
(即, id="name"
),I需要重置所述第二select
来select all
;)
similarly, when I select an option of the second select
(ie id="name2"
), I need to reset the first select
to select all
.(类似地,当我选择第二的一个选项select
(即, id="name2"
),我需要复位第一select
来select all
。)
How can I do that?(我怎样才能做到这一点?)
ask by Anish translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…