Hi,
'submit' type input for a form has 'disabled' property; default value is false for this to allow submission of the form fields. When true, it becomes disabled but does not submit the form inputs to server.
I had faced such a scenario with 'onclick' event, but I got both 'disabled' property and form fields submission together with a following trick.
Rails:--
<%=submit_tag 'Submit', :onclick=>'this.disabled=true;this.form.submit();' %>
HTML:--
<input type='submit' value='Submit' onclick='this.disabled=true;this.form.submit();'/>
Cheers
Alok Anand
Rails Detective