tag-it icon indicating copy to clipboard operation
tag-it copied to clipboard

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

Open hamzazafeer opened this issue 7 years ago • 1 comments

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.

hamzazafeer avatar Feb 06 '18 14:02 hamzazafeer

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.

userdefinable avatar Feb 28 '18 13:02 userdefinable