Last active
June 14, 2022 23:37
-
-
Save isramv/04c23e47e0a7eaef3d94 to your computer and use it in GitHub Desktop.
Check if input has a value add and remove class jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('input#edit-keys-1').blur(function(){ | |
tmpval = $(this).val(); | |
if(tmpval == '') { | |
$(this).addClass('empty'); | |
$(this).removeClass('not-empty'); | |
} else { | |
$(this).addClass('not-empty'); | |
$(this).removeClass('empty'); | |
} | |
}); |
Thank you, Very Nice!
Thank you a lot :-)
Thx so much
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, very much. It is good luck!))