我有两个选择框,如下所示。
<select name="origin" id="s1" class="editable-select" style="width:330px;height:40px;">
<option value=""></option>
<option value="Bangalore">Bangalore (BLR)</option>
<option value="Chennai">Chennai (MAA)</option>
<option value="Goa">Goa (GOI)</option>
<option value="Hyderabad">Hyderabad (HYD)</option>
<option value="Kolkata">Kolkata (CCU)</option>
<option value="Mumbai">Mumbai (BOM)</option>
<option value="New Delhi">New Delhi (DEL)</option>
<option value="Pune">Pune (PNQ)</option>
</select>
<select id="s2" class="editable-select" style="width:330px;height:40px;" name="destination">
<option value=""></option>
<option value="Bangalore">Bangalore (BLR)</option>
<option value="Chennai">Chennai (MAA)</option>
<option value="Goa">Goa (GOI)</option>
<option value="Hyderabad">Hyderabad (HYD)</option>
<option value="Kolkata">Kolkata (CCU)</option>
<option value="Mumbai">Mumbai (BOM)</option>
<option value="New Delhi">New Delhi (DEL)</option>
<option value="Pune">Pune (PNQ)</option>
</select>
现在,如果我在选择框“s1”中选择或更改选项。然后焦点应该在选择框“s2”上,它应该自动打开。
我尝试过使用 onChange 和 onFocus 函数。然后 onChange "S1" 中的任何选项,焦点跳转到"S2",但下拉菜单未打开。请通过这个 jsfiddle 链接:http: //jsfiddle.net/eQxAj
提前致谢, 肖巴