Select2() is not a function
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So i have downloaded select2 i have "installed it" by putting it into my folder and then loaded it on my site when i check the console (where i can see all of the scripts being loaded) i can see the file select2.js I went to their documentation and copied it and added $("#e9").select2(); However when i load the page i get the following error: TypeError: $(...).select2 is not a function $("#e9").select2(); Have anyone else experianced anything like this? Additional information here is my script: 回答1: I was having this problem when I started