I am trying to show hide the submit based on DOB matching and a field that is populated by a lookup rule to tell what kind of resignation was submitted.
if ((($('.dob input').val() != $('.sigdob input').val()) && $('.restype input'.val() =="Summer"))) {
$('.doberror').show();
$('.Submit').hide();
}
else {
$('.doberror').hide();
$('.Submit').show();
}
However, it isn't working. I'm not great with JS, is there something else that needs to be added?