JSFiddle - React, Tailwind, and code Playground
HTML
<div class="form-field whitelist-searchable-amenity"> <input name="property[amenity_whitelist][]" type="hidden" value=""><input type="checkbox" value="accessible" name="property[amenity_whitelist][]" id="property_amenity_whitelist_accessible"> <label for="property_accessible">Accessible</label>
<input name="property[amenity_whitelist][]" type="hidden" value=""><input type="checkbox" value="accessible" name="property[amenity_whitelist][]" id="property_amenity_whitelist_accessible"> <label for="property_accessible">Accessible</label>
<input name="property[amenity_whitelist][]" type="hidden" value=""><input type="checkbox" value="accessible" name="property[amenity_whitelist][]" id="property_amenity_whitelist_accessible"> <label for="property_accessible">Accessible</label>
<input name="property[amenity_whitelist][]" type="hidden" value=""><input type="checkbox" value="accessible" name="property[amenity_whitelist][]" id="property_amenity_whitelist_accessible"> <label for="property_accessible">Accessible</label>
<input name="property[amenity_whitelist][]" type="hidden" value=""><input type="checkbox" value="accessible" name="property[amenity_whitelist][]" id="property_amenity_whitelist_accessible"> <label for="property_accessible">Accessible</label></div>
JavaScript
$('div.whitelist-searchable-amenity input[type=checkbox]').each(function(){
$(this).prop('checked', true);
});