http://forum.jquery.com/topic/autocomplete-how-do-i-avoid-a-duplicate-search#14737000000762167
):$(
'#groupset' ).autocomplete( 'ajax/php/leeruns.php' );$(
'#groupset' ).result( function (event, data, formatted) { if (data){$(
'#groupsetdesc' ).val(formatted);groups.load(data[1]);
}
else {$(
'#groupsetdesc' ).val( '' );}
}
).blur(
function (){$( this ).search();});It formatted like this using the code button: