I want to disable submit button in my form once it s clicked to restrict user to click it again and again i tried this with jquery
$('form').submit(function()
{
var formId = this.id;
if (formId != ''){
$('#'+formId+' :input[type=submit]').attr('disabled',true);
this.submit();
}
});
my problem s that i have two submit button s in my page which i m checking in controller to direct but i m not getting any post values once i disable the submit button in my form. Is there any other way to prevent user to restrict multiple clicks ?