JSFiddle - React, Tailwind, and code Playground
HTML
<a id="urlTest" title="Checkout" href="yahoo.com">Checkout</a>
<p><input type="radio" value="www.apple.com" name="url">Change to apple</p>
<p><input type="radio" value="www.google.com" name="url">Change to google</p>
JavaScript
$(document).ready(function(){
$('input[name=url]').bind('click', function () {
$("#urlTest").attr("href",$(this).val());
}
});