if dta was there show div and if data was not hide div in input then hide a box using jquery code example
Example: hidden jquery
$('#yourid').attr('hidden', false);
$('#yourid').attr('hidden', true);
$('#yourid').attr('hidden', false);
$('#yourid').attr('hidden', true);