I\'m using the jQuery Select2 (v4) plugin for a tag selector.
I want to listen for when a new tag is created in the select element and fire an ajax request to store
The only event listener that worked for me when creating a new tag was:
.on("select2:close", function() { (my code) })
This was triggered for new tags and selecting from the list. change, select2:select, select2:selecting and any others did not work.
change
select2:select
select2:selecting