Add scrollbar to SPAutocomplete in Spservices

Add scollbar to autocomplete in spservice is easy.We need to overtire css.

$().SPServices.SPAutocomplete({
sourceList: “Product”,
sourceColumn: “LinkTitle”,
columnName: “txtNewProductValue”,
filterType: “Contains”,
CAMLQuery: camlQuery ,
highlightClass: “ms-bold”,
uniqueVals: true,
ignoreCase: true,
numChars: 1,
slideDownSpeed:”fast”,
debug: true,

});

//add css for add scrollbar
$(‘#SPAutocomplete_’).css({“max-height”:”150px”,”overflow-y”:”auto”,”overflow-x”:”hidden”});
}

Output is

scrollbar