$('.alpha').hide();
if (Q2_selected == 'Employment') {
$('.Question4').show();
$('#sub').click(function() {
var Q4_selected = $('input[name=Mo_Employees]:checked').val();
if (Q4_selected === '<=5') {
$('.Q4_fail').show();
} else {
$('.Q4_fail').hide();
$('.Question4').hide();
$('.complete').show();
$('#sub').hide();
}
});
} else {
$('.complete').show();
$('#sub').hide();
}
}
if (Q2_selected == 'Housing' || Q2_selected == 'Accommodations') {
if (Q3_selected == 'Age') {
$('.Age_fail').show();
$('#jurisdiction_Q3').hide();
$('.Q3_fail').show();
$('.Question3').show();
$('.alpha').hide();
$('.complete').hide();
$('#sub').show();
}
}
});
}
});
}
});
}
$(function() {
$.scrollUp({
scrollName : 'scrollUp', // Element ID
topDistance : '600', // Distance from top before showing element (px)
topSpeed : 300, // Speed back to top (ms)
animation : 'fade', // Fade, slide, none
animationInSpeed : 200, // Animation in speed (ms)
animationOutSpeed: 200, // Animation out speed (ms)
scrollText : 'Scroll to top', // Text for element
activeOverlay : false // Set CSS color to display scrollUp active point, e.g '#00FFFF'
});
});
App scripts