If parent
is a jQuery element, when I do this:
parent.change(function (e) {
e.preventDefault();
console.log($(this));
console.log($(this).data('tab'));
});
This is working, but when I do this:
parent.change((e) => {
e.preventDefault();
console.log($(this));
console.log($(this).data('tab'));
});
it's not working, why?