Вот мой выбор. сильный> :
Код: Выделить всё
-- SELECT SERVICE --
Код: Выделить всё
success: function(response){
console.log(response);
$('#service').attr("disabled", false);
$.each(response, function(i, val){
$('#service').append( `
${val.service}, ${val.description}
);
});
}
Код: Выделить всё
$('#reset').on('click', function() {
$('#service').removeData();
});
Подробнее здесь: https://stackoverflow.com/questions/781 ... h-button-c