Skip to content

Instantly share code, notes, and snippets.

@sfaxon
Created February 15, 2015 17:41
Show Gist options
  • Save sfaxon/bfc72f330b6396097646 to your computer and use it in GitHub Desktop.
Save sfaxon/bfc72f330b6396097646 to your computer and use it in GitHub Desktop.
select2 4.0.0 beta-3 createTag option
$(".select2").select2({
createTag: function (params) {
debugger;
return { id: params.term, text: params.term };
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment