JSFiddle - React, Tailwind, and code Playground

by Travis Harris

HTML

<form method='POST' action='http://www.google.com'>
    <input type="submit" id="postpayment" name="postpayment" class="btn btn-primary" value="Post" />
    <input type="submit" id="load" name="load" class="btn btn-primary" value="Load" />
</form>

JavaScript

$(function () {
    $('#postpayment').click(function (event) {
        event.preventDefault();
        $('#load').prop('disabled', true);
    });
});