required: true }, surface: { digits: true, required: true } }, messages: { type_bien: "Type de bien", cp: { required: "Code postal", minlength: "Code postal valide", maxlength: "Code postal valide", digits: "Code postal valide" }, annee_construction: "Annee de construction", gaz: "installation gaz", elec: "installation éléctrique", nb_piece: "nombre de piece", surface: { required: "surface", digits: "surface valide" }, }, errorContainer: $('#error'), errorLabelContainer: $('#error ul'), wrapper: 'li', submitHandler: function(form) { form.submit(); } });