1
I want to take all the fields of one select
and store them in a array
. I thought I’d do it this way, but it didn’t work.
var lista = [];
lista = $('#Model').text();
$('#Model').append('<option value="' + data.ModelID + '">' + data.Name + '</option>');
Thanks Vigilio, but then in this case I have ID and I have the text, as I do to take both and store?
– Fabio Souza
@Fabiosouza put your
Select
in the question please– novic
select is fed a json bringing the bank results
– Fabio Souza
@Fabiosouza did the editing!
– novic