mdbootstrap / bootstrap-templates

A collection of free Bootstrap 5 templates.
https://mdbootstrap.com/freebies/
3.07k stars 1.02k forks source link

How to get text of removed tag #656

Closed mba8487143 closed 2 years ago

mba8487143 commented 5 years ago

i want to get the text of the on click remove button. how to get the text

pablocorezzola commented 5 years ago

Try

$('input').tagsinput(); $('input').on("beforeItemRemove", function(tag){ console.log(tag.item); });