I want to get all fields of a select
and store them in array
. I thought about doing it, but it did not work.
var lista = [];
lista = $('#Model').text();
$('#Model').append('<option value="' + data.ModelID + '">' + data.Name + '</option>');