$(document).ready(function () { var rules = { '9d549512-dc8a-4774-84d1-27a349e8a8c7~#~Achternaam' : {required: true} , '102eb07f-7f0e-4cc9-87a7-e2b3988960cd~#~Prive emailadres' : {required: true, email: true}
}; var messages = { '9d549512-dc8a-4774-84d1-27a349e8a8c7~#~Achternaam' : {required: 'Last name is required!'} , '102eb07f-7f0e-4cc9-87a7-e2b3988960cd~#~Prive emailadres' : {required: 'Email adress is required!', email: 'Use a valid email adress! '}
};
var validator = new jQueryValidatorWrapper('FormToValidate', rules, messages);
$('#PROGRESS').hide(); $('#SEND').click(function () { if (!validator.validate()) { return; } else { $('#SEND').hide(); $('#PROGRESS').show(); } });
});