JSFiddle - React, Tailwind, and code Playground

HTML

<form style="display: none">
    <input type="checkbox" checked="checked" name="test" />
</form>

JavaScript

alert( $("form").serialize() );