JSFiddle - React, Tailwind, and code Playground

by Suraj Raj Shrestha

HTML

<form>
    <table>
        <tr>
        <td><input type="checkbox" id="agree"> I agree Terms and Conditions</td>
        </tr>
        <tr>
            <td>
                <input type="button" id="submit" value="submit">
            </td>
        </tr>
    </table>
</form>

CSS

#submitted { display:none }

JavaScript

$(function(){
    $('#submit').live('click', function(){
alert("success");          
    });
});