JSFiddle - React, Tailwind, and code Playground
HTML
<input name='test' type='checkbox' class='nochange' />
<br />
<input name='test' type='checkbox' id='nochange' />
JavaScript
/* by class */
$(".nochange").click(function() { return false; });
/* by ID */
$("#nochange").click(function() { return false; });