$(document).ready(function(){ function fullName(row) { if (typeof row.fullname == "string" && row.fullname != '') { return row.nickname + ' (' + row.fullname + ')'; } else { return row.nickname; } } $('#notice_data-text').autocomplete($('address .url')[0].href+'main/autocomplete/suggest', { multiple: true, multipleSeparator: " ", minChars: 1, formatItem: function(row, i, max){ row = eval("(" + row + ")"); // the display:inline is because our INSANE stylesheets // override the standard display of all img tags for no // good reason. var div = $('