JSFiddle - React, Tailwind, and code Playground

by LW

HTML

<button id="myButton">
Download
</button>

<div id="osvezi">
something else
</div>

<a id="myButton2" href="#">
Download
</a>
<p id="demo">

</p>

JavaScript

$(function() {       
  $("#myButton").click(function() {
    $("#osvezi").load(location.href + " #osvezi > *");
  });
});

document.getElementById("demo").innerHTML = Date();
$(function() {  //run when the document's ready, elements are loaded
$("#myButton2").click(function() {
    $("#demo").load(this.href);
  });
});

//not working