I have select
<select multiple id="select2">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
And two buttons
<input type="button" value="Up" onclick="up()">
<input type="button" value="Down" onclick="down()">
How can I move selected option in multiselect up and down by buttons using jquery?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…