filmov
tv
javascript - Adding options to a select using jQuery?

Показать описание
#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');
#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');