Question: I'm using `jquery-1.4.2.min` and `jquery-ui-1.8.6.custom` to get the autocomplete data on a jsp page, here is the code snippet:

```
$(document).ready(function() { $("input#airportfrom").autocomplete({minLength: 3,
source: function(request, response) { $.ajax({ 
url: "MLocationLookupSearchPopUpAuto.action?LANGUAGE=${param.LANGUAGE}&SITE=${param.SITE}&RESULT_FILTER=3",
dataType:"text/html", 
data: { MATCH : $("#airportfrom").val() }, 
success: function(data) { response(data); } }); } }); });

```

The result returned is correct as I have used an `alert(data);` inside the success function and it gave correct result, but in the list, it is showing one character or one alphabet per line, hence if I want to get LONDON, it is displayed as:

```
l
o
n
d
o
n

```

Any idea why this happening ? Whether we have to give data as json only because here I'm getting the data from a jsp.

Answer: 
Hmm...why such a difficult one?

```
alert\((.+?)\)

```
```
alert\("(.[^"]*)"\)

```

The only character not permitted is "