hi, there, jQuery expert here!
it's a way, to have a form set up so that if a mandatory field has been missed, the user won't be able to continue to the next tab.
--- ---
$('.required').on('blur', 'input', isReady);
function isReady() {
$('.required input').each(function(){
if( $(this).val().length === 0 ) {
$('.action-btn').hide();
}
});
}
---
or
---
var valid = true;
$('#form1 input, #form1 textarea, #form1 select').filter(':visible').each(function() {
if(!$(this).checkValidity()) {
valid = false;
}
});
if(!valid) {
return;
}
if your project includes the code similar to this, please contact me. i mastered this way and can help you immediately. looking forward to hearing from you. Nikita