jquery only apply show and hide effect to children of this element code example
Example: if (to_timing <= time) { $('#cancel').hide(); }
if (to_timing <= time) {
$('#cancel').hide();
}
if (to_timing <= time) {
$('#cancel').hide();
}