This is not working on Google-Chrome, but on Firefox it works. it does disable the button on click but the login form is not posting and on Firefox I am able to login but not working on Chrome, click is disabled but can't login for some reason, removing this script fixes the problem.
var fewSeconds = 10;
$('#btnLogin').click(function () {
var btn = $(this);
btn.prop('disabled', true);
setTimeout(function () {
btn.prop('disabled', false);
}, fewSeconds * 1000);
});
The script below is causing the same problem, still unable to login, button click is disabled but the post is not happening
var fewSeconds = 10;
$('#btnLogin').click(function () {
$('#btnLogin').attr('disabled', 'disabled');
setTimeout(function () {
$('#btnLogin').attr('disabled', '');
}, 2000);
});