function toggle1() {
//code toogle1
function toggle2() {
//code toogle2
}
}
I want to call toggle2()
in the onsubmit of the form:
<form name="myForm" action="blabla.php" onsubmit="return toogle2()" method="post">
I have no clue about this, thanks in advance.