Select2, dynamiczne dodawanie?« Wróć do listy pytań
$("#the_select").append($('', {value:"NEWVAL", text: "New Option Text"}));
|
▲ ▼ |
$("#the_select").append($('', {value:"NEWVAL", text: "New Option Text"})); |