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

后端 未结 2 683
时光说笑
时光说笑 2020-12-11 04:44

I\'m using bootstrap 3 with jquery 1.10 and I\'m tring to using tags-input plugin (http://timschlechter.github.io/bootstrap-tagsinput/examples/bootstrap3/) but it doesn\'t w

相关标签:
2条回答
  • 2020-12-11 05:13

    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

    0 讨论(0)
  • 2020-12-11 05:15

    Check if you included bootstrap-tagsinput.js script.

    It seems working for me: JSBin link

    0 讨论(0)
提交回复
热议问题