1
I am creating an autocomplete to use in my system and I am using Twig...
My script is very simple and with some searches on the internet, that’s what I got:
<script type="text/javascript">
var nomes = {{ usuarios | json_encode | raw }};
$( "#busca" ).autocomplete({
minLength: 1,
source: nomes
});
</script>