0
Good morning, I’m with a request that I can’t find anything like this.
When clicking on select, it sends a request for javascript and fills in the data, and when filling in, I need this data to appear.
Until you fill in, okay, it works fine, but open select right away, it’s not coming out.
I tried something like
//preenche os dados
$.each(dados, function (i, d) {
$('<option>').val(d.Id).text(d.Descricao).appendTo(selectbox);
});
//abre os dados preenchidos
selectbox.show().focus().click();
This top code was the most I could find to open a select but it didn’t work.