JSFiddle - React, Tailwind, and code Playground

HTML

<form action="" method="post">
<input id="someID" signed" type="checkbox" checked>
<label for="someID">x</label>
<button type="submit">Submit</button>
</form>

JavaScript

$('form').submit(function() {
    $("input[type=checkbox] + label").toggle();
    return false;
});