javascript - Adding options to a select using jQuery?

preview_player
Показать описание
#short
#javascript
#jquery
#html-select
What's the easiest way to add an option to a dropdown using jQuery?
Will this work?
$("#mySelect").append('option value=1My option/option');
Рекомендации по теме