Gregor Gregor - 2 years ago 123
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 {;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download