-1
I have the following code:
<ul class="dropdown-list-autocomplete" id="Layer_1abc" data-layer="Layer_1"></ul>
And this JS:
function AtivaAutoComplete(id_mapa, regiao, path_map){
$("ul#dropdown-list-autocomplete[data-layer='"+id_mapa+"']").append('<li>'+regiao+'</li>');
}
What I want to do is: The tag that contains the element data-layer
with the value Layer_1
or Layer_2
, etc.. You will receive the value of append()
, but it’s not working. It only works when I say which #ID is.
Thanks buddy, lack of attention even rsrs.
– Alisson Acioli
@Alissonacioli of nothing! Good luck with the project!
– mrlew