[jQuery] Autcomplete error: list.scrollTop is not a function
Can't quite grasp why this is happening on certain pages (and sorry,
these pages are behind login, so really can't publicly share a link)
Line 707 of the autocomplete 1.0.2 is throwing
"list.scrollTop is not a function"
show: function() {
var offset = $(input).offset();
element.css({
width: typeof options.width == "string" || options.width > 0 ?
options.width : $(input).width(),
top: offset.top + input.offsetHeight,
left: offset.left
}).show();
if(options.scroll) {
list.scrollTop(0); <<--- right here ---------------
list.css({
maxHeight: options.scrollHeight,
overflow: 'auto'
});
I saw some previous talk from late last year about this error, but it
had to do with a conflict with UI DatePicker, which i do not have on
this page i am looking at right now... i do have BlockUI and
ClickMenu in the page, but removing those from the page didn't make a
difference
this is my code to wire up the autocomplete
$("#Page_Search").autocomplete(
"/common/services/Autocomplete.ashx",
{ extraParams: { mode: "AFFASB" } }
);
so i don't have anything special defined with scroll or "max" (which
i see line 23 in autocomplete js uses '.scroll')
Oh, and also to mention, the autocomplete functionality does work, but
that JavaScript error could cause other problems