I wrote a simple value checker for needed inputs, please see the demo here:
$('.required').keyup(function(){
if($(this).val() == '') {
$(this).addClass('warning');
$('.meet').addClass('disabled').attr('disabled',true);
} else {
$(this).removeClass('warning');
//if($(this).siblings('.required').val() == '') {
//this should check if other requiered fields are empty
//but it fails
$('.meet').removeClass('disabled').attr('disabled',false);
//}
}
});
If you 1. enter a value to both inputs and 2. delete both - and 3. then enter a value to one of them, the submit is enabled (fail) - but one needed input is blank so the submit still has to be disabled.
I tried to check the siblings ".required" for their values but it does not work.