$(this) --> this is not working. Why?
methods: {
badgeBagAdd: function(id) {
var id = this
var count = $(id ).parents('tr').find('.badge-bag-count').text();
},
$(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)
You’re too fast Thanks