Following is my code:
$('#cow_id_2').select2({
allowClear: true,
placeholder: "Search a cow/dam ID",
formatNoMatches: function (term) {
return "<a href=/'http://google.com/'>Add</a>";
}
});
When I try to add a link the plugin just stop working. I am using Select2 4.0.3 version