Ok, this is my script and the piece of html that is related to it. The HTML: ... <input autocomplete="off" id="productname" name="productname" value="Televisión LCD LG 42 pulgadas 42LG3000" class="value big ac_input" type="text"> ...
The JS code:
$("#productname")
.autocomplete("ax/suggest.html", {
minChars: 2,
max: 10,
scroll: false,
matchContains: true,
formatResult: function(data, value) {
return value.split('|')[0];
},
extraParams: { type: 'product'}
});
Regards!

