Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
jquery if null or empty
Gary Porter
Programming language:
Javascript
2021-07-01 18:42:23
0
Q:
jquery if null or empty
Ethan Coen
Code:
Javascript
2021-06-26 07:11:07
if (jQuery('#something').val().length != ''){} or if (jQuery('#something').val().length != 0){}
0
Tags
jquery
empty
Related
javascript null or empty
jquery if empty remove div
jquery if div is empty
empty the value of an input in jquery
jquery empty
jquery select input with empty value
check if variable is undefined or null jquery
jquery how to check if an array is empty
jquery check if empty object
New to Communities?
Join the community