onSubmit not working in a layer
This is really frustrating. :)
I've got some form code that works fine on a regular HTML page, but when I put it in a layer, its screwy.
<form action="doform.php" method="POST" onSubmit="myfunction()">
Basically I want to call the function and submit the form at the same time. Works fine on a plain page, but when I try in a layer, it goes to the "doform.php", but it doesn't submit any of the form values! :confused: (When I change the method to GET, it goes to "doform.php?" with no variables after the ?)
If I remove the "onSubmit" everything works.
Thanks for the help! :)