JSFiddle - React, Tailwind, and code Playground
by Dygerati
HTML
<a href="#" id="testLink">test</a>
<h1 id="linkClass"></h1>
JavaScript
$('#linkClass').html(typeof($('#testLink').attr('class')));
by Dygerati
<a href="#" id="testLink">test</a>
<h1 id="linkClass"></h1>
$('#linkClass').html(typeof($('#testLink').attr('class')));