JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td id="test" data-priority="1">Description of status</td>
</tr>
</table>
JavaScript
console.log($.hasData(document.getElementById('test')));
console.log($('#test').data());
<table>
<tr>
<td id="test" data-priority="1">Description of status</td>
</tr>
</table>
console.log($.hasData(document.getElementById('test')));
console.log($('#test').data());