JSFiddle - React, Tailwind, and code Playground

by Neo Aptt

HTML

<form action="">
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
</form>

JavaScript

var a = $("input[name*='sex']")
alert(a);