JSFiddle - React, Tailwind, and code Playground

by Erick Petrucelli

HTML

<input type="button" id="Reset" value="Reset" onclick="alert('Button cliked.')" />

JavaScript

$("input[type=button]").each(function () {
    $('<a href="#">' + $(this).val() + '</a>').insertAfter(this).
        bind("click", function () {
            $(this).siblings("input[type=button]").click();
            return false;
        });
    $(this).hide();
});