When reset-btn is clicked, calculate-btn stops and then does not work

Use following code

$(".form-contol").change(function(){
blink();
});

var blink = function() {
$(".calculate-btn").animate({
    opacity: '0'
    }, function(){
    $(this).animate({
        opacity: '1'
    }, blink);
  });
};

$(".reset-btn").click(function(){
 $(".calculate-btn").stop().animate({opacity:1});
});

Leave a Comment