I know this is a simple question but ... In the Autocomplete multiple cities example (http://dev.jquery.com/view/trunk/plugins/ autocomplete/) how do you send the final set of chosen entries to the server ie. all the values in the input box when "Get Value" is clicked?
Here is the code from the example: $().ready(function() { function findValueCallback(event, data, formatted) { $("<li>").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result"); } function formatItem(row) { return row[0] + " (<strong>id: " + row[1] + "</strong>)"; } function formatResult(row) { return row[0].replace(/(<.+?>)/gi, ''); } $("#suggest3").autocomplete(cities, { multiple: true, mustMatch: true, autoFill: true, }); $(":text, textarea").result(findValueCallback).next().click(function() { $(this).prev().search(); }); $("#suggest3").result(function(event, data, formatted) { var hidden = $(this).parent().next().find(">:input"); hidden.val( (hidden.val() ? hidden.val() + ";" : hidden.val()) + data[1]); }); });