JSFiddle - React, Tailwind, and code Playground
by Alex Alex
HTML
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<div id="new1">
<input type="radio" id="return1" name="radio">
<label for="return1">Name</label>
<input type="radio" id="return2" name="radio" checked="checked">
<label for="return2">Surname</label>
</div>
JavaScript
$(document).ready(function () {
$(function () {
$("#new1").buttonset()
});
});