JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <label for="yes">
        <input id="yes" type="radio" name="answer" value="yes" />
        <a href="#">yes</a>
    </label>
    <label for="no">
        <input id="no" type="radio" name="answer" value="no" />
        <a href="#">no</a>
    </label>
</form>

JavaScript

$("label").click(function(){
    alert( $(this.form).serialize() );
    return false;
});