JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<div id="testAttribute" value="test"></div>
</body>
</html>
JavaScript
console.log(
document.getElementById("testAttribute").getAttribute("value"),
$("#testAttribute").attr("value")
);