hola amigos lo pude solucionar
ya valido las dos modales
Código Javascript
:
Ver originalvar vProduct = {
rules: {
name: {
minlength: 2,
required: true
},
namem: {
minlength: 2,
required: true
},
email: {
required: true,
email: true
},
emailm: {
required: true,
email: true
},
subject: {
minlength: 2,
required: true
},
message: {
minlength: 2,
required: true
}
},
highlight: function(label) {
$(label).closest('.control-group').addClass('error');
},
success: function(label) {
label
.text('OK!').addClass('valid')
.closest('.control-group').addClass('success');
}
};
jQuery("#form-add").validate(vProduct);
jQuery("#form-update").validate(vProduct);
en la modal uno tengo el formulario form-add y en la modal dos form-update