I am using typeahead with bloodhound which I successfully integrated with it but when i keypress on it it makes the tag but didnt search it from my ajax code. In console it says undefined bloodhound.
Asked
Active
Viewed 144 times
1
-
can you show your code? – error404 Jul 19 '17 at 14:30
-
Thanks, my issue was because of the js code calling before the file load. Its working now. – rescue1155 Jul 19 '17 at 14:43
1 Answers
1
Undefined is usually happens when script didnt found the object or it is called before script.I am sure that your bloodhound script file is not loading or your js script is calling after the bloodhound file is loading.
First call the bloodhound file in the footer and then use bloodhound script.

Wasif Iqbal
- 474
- 1
- 4
- 17