如何使用JJavaScript和MVC在一个文本框中插入多个数据?

如何使用JJavaScript和MVC在一个文本框中插入多个数据?,javascript,jquery,html,Javascript,Jquery,Html,我在一个文本框中插入了多个值,但数据没有插入到表中。如何解决这个问题 <input id="txtlocName" placeholder="Location Name" type="text class="form-control"> $('#txtlocName').selectize({ delimiter: ',',` persist: false, create: function (input) { re

我在一个文本框中插入了多个值,但数据没有插入到表中。如何解决这个问题

<input id="txtlocName" placeholder="Location Name" type="text class="form-control">

$('#txtlocName').selectize({
       delimiter: ',',`
       persist: false,
       create: function (input) {
            return {
                   value: input,
                    text: input
            }
       }
});

检查是否正确添加此jQuery插件的所有依赖项
请看存储库示例中的一个示例
它依赖于jquery.js、selectize.js、index.js文件和stylesheet.css文件