Как то так?
$(document).ready(function(){
$("#form-sign-up").validate( {
rules: {
email: {
required: true,
email: true
},
surname: {
required: true,
surname: true
}
},
messages: {
email: {
required: "Please provide an email",
email: "Please provide a valid email"
},
surname: {
required: "Please provide a surname",
surname: "Please provide a valid surname"
}
}
});
});
edit найдено большое демо здесь