Hey iv been looking for a solution using JQuery or by modifying the twitter bootstrap class to prevent a button from performing its onclick action aka disabling it. However the results iv found so far have not performed correctly and mostly only give an appearance of being disabled but still perform correctly:
var me = $(this);
If you are using twitter bootstrap there is this exactly behavior already implemented for you.
You just need to change the class
.disabled of the element you want to disable.