CFFORM onSubmit script works in FF but not in IE
I've got a CFFORM that has an onSubmit additional javascript for form validation, and while it works in FF, it passes right through in IE and ends up erroring because the mandatory fields aren't there...
the CFFORM call looks like this
<cfform name="add_project" method="post" action="xxxxxxx.cfm?view=admin-add-process&entity=project" enctype="multipart/form-data" onsubmit="return checkReq();">
and the function looks like
<script language="javascript">
function checkReq() {
var valid = true;
var errMsg = '';
if (document.add_project.projectreviewer_emails.value.trim() == '') {
...
} else {
...
}
...
</script>
Any ideas?
Thanks in advance,
bw
