Gregor Gregor - 1 year ago 64
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");

Answer Source

Try following

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