Huh… so even though it’s removed from the DOM, it still works?
It’s not removed from the DOM, it’s just not displayed — no different than
input type=hidden, for example. If it were removed, then no, it would not be submitted.
Right… we’re no longer using document.ready so I can’t load the script tag in the head.
You could still do it on document.ready, too. Codepen does that automatically, which is why the pen doesn’t have any problems with it.