JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<style>
div { color:blue; }
span { color:red; }
</style>
</head>
<body>
<div>
The values stored were
<span></span>,
<span id="mid"></span>
and
<span></span>
</div>
<script></script>
</body>
</html>
JavaScript
var div = $("div");
jQuery.data(div, "test-a", 0);
jQuery.data(div, "testb", 0);
jQuery.data(div, "test-c", 1);
$("span:first").text(jQuery.data(div, "test-a"));
$("span#mid").text(jQuery.data(div, "testb"));
$("span:last").text(jQuery.data(div, "test-c"));