Reputation: 475
Selectize plugin is not loading in the localhost. It shows error
Uncaught TypeError: $(...).selectize is not a function
But it is working fine in the test server. No error is showing. It loads fine. The strange this is this worked on my localhost yesterday. I have not made any changes and when I opened the site today on localhost it shows this error.
Upvotes: 0
Views: 8810
Reputation: 475
I have found the answer. I have repeatedly loaded the jquery which made this error. When i removed the repetition it works fine.
Upvotes: 7
Reputation: 4818
Can you please check, does your jquery files coming from live server path or from local?
Uncaught TypeError: $(...).selectize is not a function
This error only comes when your related jquery library is not placed in correct path.
Upvotes: 0