Validate one tab at time

This sample display a multi-tab form using the TMT Validator and tmt.widget.tab

Here form fields are validated one tab at time, since we use the tmt:tabform attribute.
Each time the user leaves a tab and moves to a new one, the previous tab is validated

Whenever the form is submitted instead, all fields are validate in one single swap

Assign tmt.widget.tab.util.validate() to onsubmit event
Italy's major contributions to modern civilization?
(pick at least one)




You would like to take a drink with:


You would like to take go for a dinner with:
Default callback (JavaScript alert)
Italy's major contributions to modern civilization?
(pick at least one)




You would like to take a drink with:


You would like to take go for a dinner with:
Different callbacks for <form> and tabs
Italy's major contributions to modern civilization?
(pick at least one)




You would like to take a drink with:


You would like to take go for a dinner with: