Using JavaScript, how do I NOT detect 0, but otherwise detect null or empty strings?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From your question title:
I can only see that you forgot a
=when attempting to strict-equality-comparevalwith the empty string:Testing with Firebug:
EDIT: see CMS’s comment instead for the explanation.