JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script>
    </head>
    <body>
        <form class="message-delete-form" action="#" style="display:inline">
            <input type="hidden" name="id" value="30"/>
            <input type="hidden" name="action" value="delete"/>
            <input type="submit"/>
        </form>
        <script>
<!--
    $(".message-delete-form").submit(function() {
        var form = $(this);
        alert(form.find("input[name='id']").length);
    });
-->
        </script>
    </body>
</html>