if was there show box and if data was not in input then hide a box using jquery code example
Example: save action hide element in jquery
$(function() {
if (Cookies.get('RemoveCount') == 'true' && Cookies.get('RemoveCount') != 'undefined') {
$("#count").hide();
} else {
$("#count").show();
}
}