jQuery Tokeninput add if not exists

前端 未结 8 863
野的像风
野的像风 2021-02-05 09:07

I am in the process of writing a script that builds upon user input,

I have some fields that its values need to be quired from the database,

and if no entry fo

8条回答
  •  醉酒成梦
    2021-02-05 09:12

    This is now handled in the latest master of this plugin, using the allowFreeTagging option: https://github.com/loopj/jquery-tokeninput/blob/master/src/jquery.tokeninput.js#L57

    The version number and docs haven't been updated in 2 years, so you'll have to use master.

提交回复
热议问题