Hi
In simple way you can write the same in JavaScript. I just adding sample code for input type text you may add in same for other field type as well.
function doit2() {
var flagEmpty = false;
$("#two").find("input[type='text']").each(function () {
if ($(this).val().trim() == "") {
flagEmpty= true;
}
})
if (!flagEmpty) {
if (document.getElementById('two').style.display == 'none') {
document.getElementById('two').style.display = 'block';
} else {
document.getElementById('two').style.display = 'none';
}
}
}