Tagsinput is not a function, using bootstrap 3 and tags-input plugin

泪湿孤枕 提交于 2019-11-28 12:14:55
Tor

It looks like if you specify both data-role="tagsinput" and use $('#idInputWhat').tagsinput('add', 'vino'); then it gives that error. Try removing the data-role attribute, and use only the explicit .tagsinput().

I'd consider this a bug in the tagsinput plugin.

Seems to be confirmed here; https://github.com/TimSchlechter/bootstrap-tagsinput/issues/42

Check if you included bootstrap-tagsinput.js script.

It seems working for me: JSBin link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!