JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="1" class="memberIds">
<button onclick="test()">Click Me</button>
JavaScript
function test()
{
$('#1').prop("checked", true);
}
<input type="checkbox" id="1" class="memberIds">
<button onclick="test()">Click Me</button>
function test()
{
$('#1').prop("checked", true);
}