disable submit button using jquery
<p>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 </p>

<pre><code>$('form').submit(function()
{  
    var formId = this.id;
    if (formId != ''){
        $('#'+formId+' :input[type=submit]').attr('disabled',true);
        this.submit();
    }
}); 
</code></pre>

<p>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 ?</p>
