JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

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

JavaScript

console.log(
    document.getElementById("testAttribute").getAttribute("value"),
    $("#testAttribute").attr("value")
);