JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $("#w3s").attr("href", function(i, origValue){
      return origValue + "/jquery/"; 
    });
  }); 
});
</script>
</head>
<body>

<p><a href="https://www.google.com" id="w3s">GOOGLE.com</a></p>

<button>Změň atribut href</button>

<p>Klikněte na tlačítko a provede se změna atributu href (změní se adresa).</p>

</body>
</html>