I'm trying to update text using jquery, and I'm trying to fire some functions with .change() but nothing works.
<div class="btn btn-tag" data-toggle='dropdown'>
Explore
</div>
When this text changes using jQuery functions (using .text() in jquery) it does not alert:
$(body).on('change','btn-tag',function() {
alert('test');
});
When it changes text, its supposed to alert, but it doesn't why is this?