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);
}