JSFiddle - React, Tailwind, and code Playground
by LijoCheeran
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<body>
<a href="?inputPractice=dummy" id="lnkNewPracticeInfoForm">Info Form</a>
</body>
JavaScript
$(document).ready(function() {
$('#lnkNewPracticeInfoForm').click(function ()
{
var hrefResult = $(this).attr('href');
var newHref = hrefResult.replace('dummy', "Success");
alert(newHref);
$(this).attr("href", newHref);
});
});