Autocomplete Widget + Highlighting

Autocomplete Widget + Highlighting

Hello!

I'm looking for a solution to highlight the chars entered in my in input tag in the autocomplete box.
  1. $("#location").autocomplete({
          
            source: function(request, response) {
              if ( request.term in locationCache ) {
                response( locationCache[ request.term ] );
                return;
              }

              $.ajax({
                url: "autocompleteLocation.php",
                dataType: "json",
                data: request,
                success: function(data) {
                  locationCache[ request.term ] = data;
                  response(data);
                }
           
              });
            },
            delay: 100 

          });





















I've already tried a few solutions but they don't work for me.

I guess there should be a way to do it with the 'highlight' option, but how?


Thx Stefan