Autocomplete request object in source callback
Hello,
Is it possible to get the request object in the source callback of the jQuery UI autocomplete function?
Example:
- $("input[name=q]").autocomplete( {
source: function( request, response ) {
- ... get request object that calls this function ...
- }
- } );
It is possible in the focus(), select() and change() function, but why not in the source? Or am I missing something?
The variable request only contains the term property. Calling $(this) will give me the jQuery core object.