JSFiddle - React, Tailwind, and code Playground

by Alexis LĂłpez Espinoza

HTML

Uno <input type = "radio" name = "opcion" value = "Uno" />
Dos: <input type = "radio" name = "opcion" value = "Dos" />
Tres: <input type = "radio" name = "opcion" value = "Tres" />
<p></p>

JavaScript

$(":radio").click(function(){
    $("p").html(this.value);
});