Like I said, the submit event won't fire if there are any html5 errors (see http://stackoverflow.com/questions/15138329/catch-submit-before-html5-validation), so i won't be able to switch tabs and icons. But the click event is fired event if I submit the form by pressing enter, in chrome and firefox at least.

Maybe you have a better solution ?