JSFiddle - React, Tailwind, and code Playground

by mikecapp

HTML

<form>
    <fieldset id="core">
        <input name="core1" type="hidden" value="one"/>
        <input name="core2" type="hidden" value="two"/>
    </fieldset>
    <input name="frippery" type="hidden" value="foo"/>
    <input name="mere_bagatelle" type="hidden" value="bar"/>
</form>
<div id="output"></div>

JavaScript

$("#output").text($("#core").serialize() || "nothing!");