JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
    </head>
    <body>
        <div id="testAttribute" value="test"></div>
    </body>
</html>

JavaScript

$(document).ready(function() {
        alert(document.getElementById("testAttribute").getAttribute("value") + "\n\r" + $("#testAttribute").attr("value"));
                                });