[jQuery] Validation Form problem

[jQuery] Validation Form problem


Hi, I am trying to use the Validation plug-in but I have the following error
:
missing } after property list
[Break on this error] rules: {\n
Here is the simple code :
$("#form_contact").validate({
     event: "keyup"
     rules: {
            "lastname": "required"
     },
     messages: {
            lastname: {
                required: function(element, validator) {
                    return "Indiquez votre nom de famille."
                }
            }
     }
});
Thank you for any help !
--
View this message in context: http://www.nabble.com/Validation-Form-problem-tf4253929s15494.html#a12106733
Sent from the JQuery mailing list archive at Nabble.com.