JSFiddle - React, Tailwind, and code Playground

by Ashish Kasama

HTML

Change Status <input id='sample' type="checkbox" name="sample" />
           <input type="checkbox" name="current_status[]" value="1"/>
           <input type="checkbox" name="current_status[]" value="1"/>
           <input type="checkbox" name="current_status[]" value="1"/>
           <input type="checkbox" name="current_status[]" value="1"/>

JavaScript

$('#sample').click(function(){   
    $('input[type=checkbox]').not(this).attr('checked', this.checked);    
});