From jQuery UI site (veiw source):
$( \"#birds\" ).autocomplete({
source: \"search.php\",
minLength: 2,
select: function( event, ui ) {
log(
The following worked well for me. I needed some custom data, so I pulled the search "term" term: request.term
out of the request as follows:
jQuery('.some-autocomplete').autocomplete({
source: function(request, response) {
jQuery.post(ajaxurl, {action: 'some_content_search', type: type, term: request.term}, response, 'json');
},
minLength: 2,
...