Gregor Gregor - 11 months ago 49
Javascript Question

How to recheck if Input is still empty

I'm struggling with this basic jQuery and I hope you can help out.

I have the following code which hides

if it's empty. How do I change to show now, if the input is not longer empty.

jQuery(function ($){
var test = $("#test");


Try following

$('#email').keyup(function(event) {
   var test = $('#test');
   if($(this).val() === '') {
   } else {;