[jQuery] Why is form submit action not being invoked?

[jQuery] Why is form submit action not being invoked?


Hi,
When I submit the contact form
http://elearningrd.info/jrl/contact.php
I would like to validate the email address and possibly check non-
empty values for the other fields. I'm using this code to try and
check things upon form submission:
    $(document).ready(function() {
$('#msgForm').submit(function() {
            var email = $('#Email').val();
if (!validateForm(email)) {
alert("Invalid email format.");
                return false;
}
    return true;
        });
    });
but the form validation doesn't seem to be invoked. Any ideas why?
Thanks, - Dave