[SOLVED] Methods function "this" not working

$(this) --> this is not working. Why?

methods: {
                badgeBagAdd: function(id) {
var id = this
                    var count = $(id ).parents('tr').find('.badge-bag-count').text();
                    

                },

badgeBagAdd: function() => badgeBagAdd: function(e)
$(this) => $(e.target)

1 Like

You’re too fast :slight_smile: Thanks