Hi
I’m hoping this is just a newbie mistake, but I’m trying to use a typeahead component on my site.
I’ve stripped things right back and the page link is below.
Once it loads, there is a dumb alert showing me that jquery itself has loaded just fine.
I’ve copied the exact
block containing all the webflow additions (copied from the resultant html), exact javascript (in the custom-code section) into codepen and it works fine, so I’m hoping there’s a setting in webflow I need to tweak.
The error I’m seeing in the console is Uncaught TypeError: $(…).typeahead is not a function
Any help would be most appreciated.
Cheers, Simon.
Hi … thanks for the response.
They’re both in synch. I’d overridden the codepen versions (and cdn source) to be identical to the versions I’d added in the webflow custom-code head-code section.
Thanks in advance for any other suggestions.
Cheers
I think that’s where I originally had it
Anyway, re-added … so it’s now at project-level and at page-level … still the same issue.
The browser-console is showing that it’s loading the state-list correct, but that the it’s breaking at this point $(“.mytypeahead”).typeahead({
Same to you …
btw I simply moved the entire JQuery from Project-level to Page-level, like you had, and it worked … I’m sure I had it there to start with
I even removed the data-type to see if that was I originally missed and it still worked.
Weird
Either way … thanks again for you real-time help.
Back to playing with webflow now