JSFiddle - React, Tailwind, and code Playground

HTML

<input id="Submit1" type="submit" value="submit" onclick="PV()" />
<a href="https://jquery.com">default click action is prevented</a>
<div id="log"></div>

JavaScript

function PV() {
     $('#Submit1').click(function(event) {
       event.preventDefault();
     });
     $("<div>")
       .append("default " + event.type + " prevented")
       .appendTo("#log");
   };

   $("a").click(function(event) {
     event.preventDefault();
     $("<div>")
       .append("default " + event.type + " prevented")
       .appendTo("#log");
   });