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!
No comments:
Post a Comment