JSFiddle - React, Tailwind, and code Playground
by Chris Rebert
HTML
<input type="checkbox" value="A" id="q">
JavaScript
var input = document.getElementById('q');
input.type = "file";
input.type = "checkbox";
alert('"' + input.getAttribute("value") + '"');