I have the following code:
<script>
$(document).ready(function() {
$(function() {
var availableTags = [
{model_ref}
];
$( "#model" ).autocomplete({
source: availableTags
});
});
});
How can I get this to populate the input from expression engine entries?
You can do what you're after with the expressionengine channel entries tag.
This will produce some javascript like:
The only thing is this code will have to be in a template (not a standalone JS file).