Disabled With TimeDelay

by Kyle Mitofsky

HTML

<button class='tempDisable'>Click Me</button>

JavaScript

$(function () {
    $(".tempDisable").click(function () {
        $(this).prop("disabled", true);
        setTimeout(function (el) {
            $(el).prop("disabled", false);
        }, 1000, this);
    });
});