JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input type="radio" name="category" value="doctor" /> Doctor
<input type="radio" name="category" value="police" checked /> Policia
</form>
JavaScript
var category = null;
$("input[name='category']").click(function() {
category = this.value;
alert(category);
});