Hello all i have this function which works awesome but i get small issue
$(document).ready(function(){
$("input[type='submit']").attr("disabled", false);
$("form").submit(function(){
$("input[type='submit']").attr("disabled", true).val("Please wait.");
setTimeout(function(){
$("input[type='submit']").attr("disabled", false).val("Submit");
}, 3*1000);
return true;
})
})
The issue is when i have 2 forms in a page it changes value of all the submit buttons i just want the function to get activate for only the button clicked not for all the submit buttons .
i hope you get my point . i know that i need to modify some things in the function but i am getting some issues doing that ...