scripty2
scripty2 copied to clipboard
Button can still be clicked after setEnabled(false)
On form submit I disable all button on the page with:
$$('.ui-button').each(function(button){ button.retrieve('ui.button').setEnabled(false); });
For buttons that are <a> elements, they have the correct visual style but can still be clicked as if they were enabled.