How can I insert an option element at a specified index in a <select multiple> element?
<select multiple>
Thanks
$("select option").eq(index).before($("<option></option>").val(val).html(text));
2.1m questions
2.1m answers
60 comments
56.9k users