JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<input type="checkbox" name="relocation[]" class="relocation" value="Yes" checked="checked">
<input type="checkbox" name="relocation[]" class="relocation" value="No" checked="checked">
<input type="checkbox" name="relocation[]" class="relocation" value="Both" >
JavaScript
$( ".relocation:checked" ).each(function(i,v){
alert(v.value)
});