JSFiddle - React, Tailwind, and code Playground
by Pris Wiz
HTML
<p id="demo"></p>
<button class="button1" onclick="myFunction()">Show me the date!</button>
JavaScript
function myFunction()
{
var d = new Date();
var x = document.getElementById("demo");
x.innerHTML=d.toDateString();
}
$("document").ready(function() {
$("#demo").prepend("Today is");
});