JSFiddle - React, Tailwind, and code Playground

HTML

<form action="" method="post">
    <input type="radio" value="1" /> Value 1 <br />
    <input type="radio" value="2" /> Value 2 <br />
</form>

JavaScript

alert($("form").first().find("input:radio").first().val());