The plugin tried to validate forms that not visible, and so the validation doesn't pass.
I'm guessing you mean inputs that is hidden. When you hide the input you should also remove, or rename, the attribute data-validation.
Is it possible to remove validation from a form?
Yes, simply remove or rename the attribute data-validation
function removeValidation($form) {
$form.find('*[data-validation]').attr('data-validation', null);
}
Is it possible for input type to be "button"?
Yes, trigger validation when the button is clicked.
$.validate({
form : '#my-form',
onSuccess : function($form) {
$form.get(0).submit();
}
});
$('button.my-submit-button').on('click', function() {
$('#my-form').trigger('submit');
});