JSFiddle - React, Tailwind, and code Playground
by Johan Muller
HTML
<div class="myclass">hello</div>
JavaScript
var $this = $('.myclass');
if ($this.data('current')) {
alert($this.data('current'));
} else {
alert('false');
}
by Johan Muller
<div class="myclass">hello</div>
var $this = $('.myclass');
if ($this.data('current')) {
alert($this.data('current'));
} else {
alert('false');
}