【发布时间】:2016-06-13 19:22:28
【问题描述】:
以下是我的代码:
$('#cow_id_2').select2({
allowClear: true,
placeholder: "Search a cow/dam ID",
formatNoMatches: function (term) {
return "<a href=/'http://google.com/'>Add</a>";
}
});
当我尝试添加链接时,插件停止工作。 我用的是Select2 4.0.3版本
【问题讨论】:
标签: jquery-select2 select2 jquery-select2-4