JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" name="vehicle" id="vehicleChkBox" value="FALSE" />

JavaScript

$('#vehicleChkBox').change(function(){

    if($(this).attr('checked')){
          $(this).val('TRUE');
     }else{
          $(this).val('FALSE');
     }
    
    alert($(this).val());
    
});