107
rated 0 times
[
113]
[
6]
/ answers: 1 / hits: 169024
/ 12 Years ago, thu, april 19, 2012, 12:00:00
I need to check to see if a variable is null or has all empty spaces or is just blank ().
I have the following, but it is not working:
var addr;
addr = ;
if (!addr) {
// pull error
}
If I do the following, it works:
if (addr) {
}
What I need is something like the C# method String.IsNullOrWhiteSpace(value)
.
More From » jquery