setTimeout(function() { $('input').on('input', function(){ if($(this).val() != '') { $(this).parent().find('label').hide(); } else { $(this).parent().find('label').show(); } }) }, 500);