I hope you can help me with this: I was using select option to display a list of options without problems, but for a theme of functionality I decided to change it for a selectmenu, however I do not load anything in the select with the same procedure as it worked with the simple select option
my code is as follows:
for(x=0; x<cont; x++) {
$('#proy-select').append('<option value="' + resp['Proyectos'][x]['desc'] + '">' + resp['Proyectos'][x]['id'] + '</option>');
}
I replaced it with this one, but still nothing is loaded in the select:
var options = [];
for(x=0; x<cont; x++) {
options.push('<option value="' + resp['Proyectos'][x]['desc'] + '">' + resp['Proyectos'][x]['id'] + '</option>');
}
$('#proy-select').append(options.join("")).selectmenu();
$('#proy-select').selectmenu('enable');
Any help is appreciated