JSFiddle - React, Tailwind, and code Playground

by antelopelovefan

HTML

<input type="radio" name="radio1" id="foobar" value="This is a radio button" />

JavaScript

alert( document.getElementById('foobar').value );