I have a javascript application where I'd like to add autocompletion to a form. Therefore, I render an array containing all available names in the controller so the array is available in the view (html).
$(function() {${"id"}.autocomplete({source: how to get the data here??}); });
Now I'd like read this data into a variable so I can use it in my javascript for the autocompletion... Can anyone tell me how to achieve this?
TIA
- astriffe