Remove { and } from this line:
$("#msg_from").autocomplete({ source: function (req, resp){ $.ajax({ url: "autocompl.asp", data: $("#msgForm").serialize() + "&field=msg_from" }); } });
{} in data: {} interpreted as an object literal, not a block of code (terminology?). Object literals are of the form { id: property } , so an error message.
source share