JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/dot-luv/jquery-ui.css">
<a class="anchor">Test</a>
<div id="div">
    
</div>

CSS

div { height: 100px; background: #ddd; }

JavaScript

$('.anchor').click(function() {
    $('#div').fadeOut(null, $.proxy(showDiv, this));
    $('#div').fadeIn();
    return false;
});
function showDiv () {
    alert(this.nodeName);
}