I am trying to expand a select dropdown upon clicking on a link.
<button type="button" id="btn">Click Me!</button>
<select id='sel' name='sel'>
<option>item 1</option>
<option>item 2</option>
<option>item 3</option>
<option>item 4</option>
</select>
And the Javescript is as follows.
$(document).ready(function() {
$("#btn").click(function() {
$("#sel").trigger('click');
});
});
Any Ideas...??
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…