I am working with SharePoint online and in one of the lists, I am using a choice check box column called 'Vehicle Type' with following choices: Personal Vehicle, Company Vehicle.

I am looking to do a simple thing, when Personal vehicle is checked, then I would like to hide two currency columns: Car Rental, Fuel and if Company Vehicle is checked I want to show the above two columns. Can someone help me with the JS solution. Thanks in advance.

P.S: it should account for the change event.

```
<script src="//code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function()

    $("input[title='Vehicle Driven']").change(function(){
        if($(this).is(":checked")=="Personal Vehicle"){
            $("nobr:contains('Fuel')").closest('tr').hide();
        }else{
            $("nobr:contains('Fuel')").closest('tr').show();
        }
    });

});
</script>

```