if data was there show div and if data was not hide div in input then hide a box using 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();
}