if yes then show attribute if no hide attribute in jquery 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();
}