JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
        <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js'></script>
    </head>
    <body>
        <form id='test' method="POST" action="#">
            <fieldset>
                <input type="text" id="testText" value="TEST" name="testText" />
            </fieldset>
        </form>
        <script>
            $(function() {
                var serialized = $('#test fieldset').serialize();
                if (serialized) {
                    alert('success');
                } else {
                    alert('fail');        
                }
            });
        </script>
    </body>
</html>