Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: $(...).tagit is not a function #399

Open
hamzazafeer opened this issue Feb 6, 2018 · 1 comment
Open

Uncaught TypeError: $(...).tagit is not a function #399

hamzazafeer opened this issue Feb 6, 2018 · 1 comment

Comments

@hamzazafeer
Copy link

I am facing this issue, while i also add jquery and jquery UI.

`Uncaught TypeError: $(...).tagit is not a function

at HTMLDocument.<anonymous> (post-piece-new.php:25)
at c (jquery.min.js:4)
at Object.fireWith [as resolveWith] (jquery.min.js:4)
at Function.ready (jquery.min.js:4)
at HTMLDocument.q (jquery.min.js:4)`

How can i get rid of this? this is working on local server, but not working online.

@userdefinable
Copy link

Check the order you are pulling in the Javascript.
I have it:
jquery.min.js then jquery-ui.min.js then tagit

Ensure all three are being loaded for the page in question. If you have tag-it loading after the page has finished e.g. via ajax then you will need to initialise Tag-it in that load.

Failing that try checking/changing the jquery and jquery UI versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants