jquery hide element animation code example
Example 1: hidden jquery
$('#yourid').attr('hidden', false);
$('#yourid').attr('hidden', true);
Example 2: if (to_timing <= time) { $('#cancel').hide(); }
if (to_timing <= time) {
$('#cancel').hide();
}