I'm working on a complex form with various input fields in different tabs. To handle these tabs and put DIV's in front for example I'm using javascript click events. For example to set the first tab when the page builds I'm using:
document.getElementById("defaultOpen").click();
I have a FORM around the whole form and this gets submitted whenever the javascript click event gets fired. What I've tried so far: - I replace the submit button with a normal button. Unfortunately no impact. - I added an onsubmit="return mySubmitFunction(event)" event which returns false and prevents the form from being sent.
Is someone familiar with this issue click events/form submission and knows the best way how to solve it and could push me in the right direction?
Thanks,
Lukas