[jQuery] Why is the form submitting?

[jQuery] Why is the form submitting?


I have the following code:
$(document).ready(function(){
$('form.style').submit(function() { validateForm() });
});
...
function validateForm() {
return false;
}
For some reason, it's ignoring the return false, and submitting
anyway.
If I put the return false in the function call, like so:
$(document).ready(function(){
$('form.style').submit(function() { return false });
});
It works fine.
Can someone show me what it is that I am doing wrong?