JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="x"/>
<input type="checkbox" id="x:y"/>
JavaScript
$(':checkbox[id^="x:"]').attr('checked','checked');
<input type="checkbox" id="x"/>
<input type="checkbox" id="x:y"/>
$(':checkbox[id^="x:"]').attr('checked','checked');