I do not use forms and instead of buttons I use decorated css links. There is a question of usability when, for example, it is necessary to enter a login and password in a modal window and not transferring focus from input by pressing enter to send data for validation.
The question of how it is more convenient to implement, given the fact that there will be many such sets in the form of inputs and default links. For example, if you assign the same classes to a set, then you need to write n-handlers to n-sets. And I would like one.
UPD So far, the option has come to my mind to catch input with focus and look for the sister element of the link button with the default class.
Minus: it is necessary that they be "brothers" or at least have a common parent, which is not always convenient.
UPD So far, what is the solution