如果我单击我的a href
按钮,如何使下拉菜单显示?
<a href="#" onclick"makeIDCarsMenuShow()" >my button</a>
<select name="cars" id="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat" selected="selected">Fiat</option>
<option value="audi">Audi</option>
</select>
<script>
function makeIDCarsMenuShow(){
$('#cars').trigger('click');
}
</script>