就表简单的问题
<script type="text/javascript">
$(function() {
var index = [
{ name: "0001", to: "peter@pan.de" },
{ name: "0002", to: "aaa@pan.de" },
];
$('#content').autocomplete(index,
{
width :400,
minLength: 2,
formatItem: function (row, i, max)
{
return "<table><tr><td align='left'>" + row.name + "</td></tr></table>";
},
formatMatch: function(row, i, max)
{
return row.name;
} ,
});
});
</script>