I am setting up validation following the tutorial at link text
My form action script is as follows:
<form method="POST" action="formproc_to_paypal.php" id="example"
target="_self" onsubmit="CalcAmount (this); ReadForm(this);" name="example">
When I remove/change the action line to "" (as the tutorial shows) the validation works fine. Any idea why the action is causing it not to validate?
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"></script>
<style type="text/css">
label { width: 10em; float: left; }
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
p { clear: both; }
.submit { margin-left: 12em; }
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
</style>
<script>
$(document).ready(function(){
$("#example").validate();
});
</script>