function CondtionalCheck(BaseControlID, ChildControlID, Condition) {
if ($("#" + BaseControlID).is(':checked')) {
$("#div" + ChildControlID).show();
} else {
$("#div" + ChildControlID).hide();
$("#" + ChildControlID).val("");
}
}
Above is my hide()
and show()
function. After the element is hide, it does remove the spaces, but it does not really removing all the spaces.
What causes this to happen?