[jQuery] data: $("#contact_form").serialize(),

[jQuery] data: $("#contact_form").serialize(),


Hi guys,
I need to send the whole form to the server for processing. I have
this now, which is not working:
$.ajax({
                type: "POST",
                url: "file.php",
                data: $("#contact_form").serialize(),
                success: function(data){
                    alert('ok');
                }
            });
Please let me what's wrong and how to fix it. Thanks.