Referring to this example on how to create a tabbed form in html: the example works as expected until you embed the code within a <form> element. Then clicking the tabs causes a form submission, and in the case of the example, an error.
Does anyone know a way out of this?
In the example you submit section there is a function called OpenCity that passes a event. To stop it from refreshing or submitting you just have to prevent the default state: