I think I just need another pair of eyes to look at this one.
I have a Javascript function called check() that is called when a form is submitted:
<form action="page.php" method="post" onsubmit="return check();">
I have dumbed down the JS function, just for debugging, and I still can't get it to run:
<script>
function check()
{
window.alert("It works!");
return true;
}
</script>
When I submit the form, it submits like normal and does not run the check() function. My other Javascript on the page works fine.
Any ideas? Thanks!