JSFiddle - React, Tailwind, and code Playground
HTML
<div id="fileList">
<p> Select which project files you would like to download: </p>
<form id="files">
<label><input type="checkbox" id="idOfField" /> Some text</label>
<label><input type="checkbox" name="projects" value="1">Project File 1</input></label></br>
<label><input type="checkbox" name="projects" value="2">Project File 2</input></label></br>
<label><input type="checkbox" name="projects" value="3">Project File 3</input></label>
</form>
</div>
CSS
#s_pc {
position:absolute;
top: 50%; right: 100px;
margin-top: -50px;
height: 100px; width: 100px;
max-height: 100px; max-width: 100px;
background-size: 100% 100%;
}
JavaScript
debugger;
$('#fileList input:checkbox').each(function(){
$(this).closest('label').remove();
});