Onclick Change Text & Then Change It Back

Share Now

$(".ur-submit-button").click(function() {

    var $this = $(this);
    $this.text('Creating your account...');
    //$this.attr('disabled', true);
    setTimeout(function() {
        //$this.attr('disabled', false);
        $this.text('Register');
    }, 2000);

});
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert