Actually your code should work.
To access this inside the javascript internal method, you can save the link in the external area of ββthe method:
$('.myElem').on('click', function() { var myElem = this; $(this).hide(500, function() { $(myElem).siblings('.myOtherElem').show(); }); });
However, in most jQuery methods this refers to the selector or element used:
$('.myElem').on('click', function() {
source share