I have seen several posts about this, but none have been able to help me definitively.
I'm trying to put a dynamically selected option (db data).
obj.nome = [vitor,joao,carlos]
dep_option += '<option name ='+obj.nome+'>'+obj.nome+'</option>';
dep_select = '<select name="select_'+obj.nome+'">'+dep_option+'</select>';
$('body').html(dep_select).show();
This way I put the option joao as selected.
Thanks for the help.