pbauerochse / searchable-option-list

a jquery plugin for a searchable optionlist
MIT License
79 stars 54 forks source link

$(...).searchableOptionList is not a function #25

Closed sbaldwin24 closed 8 years ago

sbaldwin24 commented 8 years ago

Not sure why I keep getting this error. The JS file is correctly placed after jQuery and searchableOptionList is clearly defined. I am using Handlebars and Gulp, not sure if that is causing the issue.

sbaldwin24 commented 8 years ago

Fixed! There was an instance of jQuery.noConflict(); in one of my JS file.

sbaldwin24 commented 8 years ago

Forgot to mention, I had to add a setTimeout function... $(function() { setTimeout(function() { $('#my-select').searchableOptionList(); }, 3000); });

pbauerochse commented 8 years ago

Hi @sbaldwin24,

glad to hear that you found the error. Just out of curiosity: do you know the reason why you have to initialize sol after the 3 second delay?

Patrick

zombiekaninchen commented 7 years ago

I used jQuery.noConflict(); $('#my-select').searchableOptionList();

and it worked... Thanks