JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="///ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css">
<span id="n2">N2</span>
<div id="b0" class="box position0">
b0
</div>
CSS
.img1over{
color: #f00
}
.img2over{
color: green
}
JavaScript
$('#n2').click(function() {
var ref = $('#b0');
if (ref.hasClass('box position0')) {
alert('movedown');
}
});