JSFiddle - React, Tailwind, and code Playground

HTML

<div class="optionHolder">
    <p class="optionName">Format</p>
    <div class="option checked">
        <input type="radio" name="fileType" value="avi" />
        
        <label>AVI</label>
    </div>
    <div class="option">
        <input type="radio" name="fileType" value="mov" />
        
        <label>MOV</label>
    </div>
    <div class="option">
        <input type="radio" name="fileType" value="mp4" />
        
        <label>MP4</label>
    </div>
    <div class="option">
        <input type="radio" name="fileType" value="mp3" />
        
        <label>MP3</label>
        </div>
</div>


<input type='submit' id='submit' value='submit'>

JavaScript

jQuery('#submit').click(function(event){
    
    var checkbox = $("input[@name='fileType']:checked");
    
    if( checkbox .length > 0 ){
        alert( checkbox.val() );
    } else {
        alert('Please select a format');
    }
      
});