Feature request: Disable submit button
Posted: 08 September 2010 06:54 PM   [ Ignore ]
Circled in the Yearbook
RankRankRank
Total Posts:  702
Joined  2010-04-08

Wondering if it’s possible, can be made possible or even if its a good thing to do; disable the submit button (with new label) until the form redirects to a new page or reloads current page.

What do you think?

Profile
 
 
Posted: 08 September 2010 07:00 PM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

With a bit of jQuery:

$('#publishForm').submit(function(){
    
$('#publishForm input[type=submit]').attr('disabled''disabled').val('Sending...');
}); 
Profile
 
 
Posted: 08 September 2010 11:17 PM   [ Ignore ]   [ # 2 ]
Circled in the Yearbook
RankRankRank
Total Posts:  702
Joined  2010-04-08

Thanks again, I should have thought of that :(

Profile