mdbootstrap / bootstrap-templates

A collection for Bootstrap 5 templates.

Home Page:https://mdbootstrap.com/freebies/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to return text of clicked tag

Mashiane opened this issue · comments

commented

How can I get the text of a clicked tag element?

Try

$(document).on('click', '.bootstrap-tagsinput > .tag', function(){
console.log($(this).text());
})