I am currently trying to create an autocomplete with a source that is stored in a javascript variable but this variable can be updated by another function. So, what I would like
Just add a reset call to auto-complete in you addToTags function:
addToTags
var addToTags = function(str){ availableTags.push(str); $( "#tags" ).autocomplete({ source: availableTags }); }