`this` belongs to window object when triggering event

Viewed 40
$("body").on('click', 'ul#ajax-users-list>li', () => {
    console.log( $(this).data('id') );
});

This code returning undefined, because $(this) = [Window].

How can i access data attributes for element, that triggered click event?

1 Answers
Related