JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://google.com" id="LoadLink">Load</a>

JavaScript

function foo(bar) {
   //$("#content").load(bar);
    alert(bar);
}

$(document).ready(function(){
  $("#LoadLink").click(function(){
    foo("test.php");
    return false; //link won't scroll to the top
  }); //click
});//ready